test: minor fixes (#4024)
- missing await - missing `defaultBrowserOptions` that's important to respect `FFPATH` (and other custom browsers)
This commit is contained in:
parent
13d48da84a
commit
b9dcfb9909
|
|
@ -162,8 +162,8 @@ it('should scope browser handles', async ({browserType, defaultBrowserOptions})
|
||||||
await expectScopeState(browserType, GOLDEN_PRECONDITION);
|
await expectScopeState(browserType, GOLDEN_PRECONDITION);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should work with the domain module', async ({ domain, browserType }) => {
|
it('should work with the domain module', async ({ domain, browserType, defaultBrowserOptions }) => {
|
||||||
const browser = await browserType.launch();
|
const browser = await browserType.launch(defaultBrowserOptions);
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
const result = await page.evaluate(() => 1 + 1);
|
const result = await page.evaluate(() => 1 + 1);
|
||||||
expect(result).toBe(2);
|
expect(result).toBe(2);
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ defineTestFixture('persistentDownloadsContext', async ({server, launchPersistent
|
||||||
acceptDownloads: true
|
acceptDownloads: true
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
page.setContent(`<a href="${server.PREFIX}/download">download</a>`);
|
await page.setContent(`<a href="${server.PREFIX}/download">download</a>`);
|
||||||
await test(context);
|
await test(context);
|
||||||
await context.close();
|
await context.close();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue