Working window.electron.getPath

This commit is contained in:
Frank Noirot
2024-08-13 20:56:18 +02:00
parent 9ab64edf7d
commit 3c4ab65729
5 changed files with 21 additions and 21 deletions

View File

@ -609,7 +609,11 @@ export async function tearDown(page: Page, testInfo: TestInfo) {
// settingsOverrides may need to be augmented to take more generic items,
// but we'll be strict for now
export async function setup(context: BrowserContext, page: Page, overrideDirectory?: string) {
export async function setup(
context: BrowserContext,
page: Page,
overrideDirectory?: string
) {
// wait for Vite preview server to be up
await waitOn({
resources: ['tcp:3000'],
@ -630,7 +634,8 @@ export async function setup(context: BrowserContext, page: Page, overrideDirecto
...TEST_SETTINGS,
app: {
...TEST_SETTINGS.app,
projectDirectory: overrideDirectory || TEST_SETTINGS.app.projectDirectory,
projectDirectory:
overrideDirectory || TEST_SETTINGS.app.projectDirectory,
},
}),
}