Working window.electron.getPath
This commit is contained in:
@ -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,
|
||||
},
|
||||
}),
|
||||
}
|
||||
|
Reference in New Issue
Block a user