mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-28 15:14:06 +00:00
feat: error-boundary + crash cache addition (#8056)
* internal emit chain for clearance * fix: crash ui * fix(ErrorBoundary): ensure cache clearing is awaited before force quitting * test(e2e): environment persistence across collections * test: migration test * Update environment.spec.ts * fix: reduce padding for dark mode app errors * chore: re-add waitForReadyPage
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
import { test, expect, Page } from '../../../playwright';
|
||||
import { test, expect, Page, ElectronApplication, waitForReadyPage as waitForReadyPageImpl } from '../../../playwright';
|
||||
import process from 'node:process';
|
||||
import { buildCommonLocators, buildScriptErrorLocators } from './locators';
|
||||
|
||||
type SandboxMode = 'safe' | 'developer';
|
||||
|
||||
type WaitForAppReadyOptions = {
|
||||
timeout?: number;
|
||||
};
|
||||
|
||||
const waitForReadyPage = (
|
||||
app: ElectronApplication,
|
||||
options: WaitForAppReadyOptions = {}
|
||||
) => waitForReadyPageImpl(app, options);
|
||||
|
||||
/**
|
||||
* Close all collections
|
||||
* @param page - The page object
|
||||
@@ -1274,6 +1283,7 @@ const openExampleFromSidebar = async (page: Page, requestName: string, exampleNa
|
||||
};
|
||||
|
||||
export {
|
||||
waitForReadyPage,
|
||||
closeAllCollections,
|
||||
openCollection,
|
||||
createCollection,
|
||||
|
||||
Reference in New Issue
Block a user