mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: run "should be able to launch Firefox" only with regular install (#7106)
This commit is contained in:
parent
cf8c08d991
commit
4607d5a2d3
@ -469,14 +469,17 @@ describe('Launcher specs', function () {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should be able to launch Firefox', async function () {
|
itOnlyRegularInstall(
|
||||||
this.timeout(FIREFOX_TIMEOUT);
|
'should be able to launch Firefox',
|
||||||
const { puppeteer } = getTestState();
|
async function () {
|
||||||
const browser = await puppeteer.launch({ product: 'firefox' });
|
this.timeout(FIREFOX_TIMEOUT);
|
||||||
const userAgent = await browser.userAgent();
|
const { puppeteer } = getTestState();
|
||||||
await browser.close();
|
const browser = await puppeteer.launch({ product: 'firefox' });
|
||||||
expect(userAgent).toContain('Firefox');
|
const userAgent = await browser.userAgent();
|
||||||
});
|
await browser.close();
|
||||||
|
expect(userAgent).toContain('Firefox');
|
||||||
|
}
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Puppeteer.connect', function () {
|
describe('Puppeteer.connect', function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user