chore: run "should be able to launch Firefox" only with regular install (#7106)

This commit is contained in:
Henrik Skupin 2021-04-20 08:56:20 +02:00 committed by GitHub
parent cf8c08d991
commit 4607d5a2d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -469,14 +469,17 @@ describe('Launcher specs', function () {
]);
});
it('should be able to launch Firefox', async function () {
this.timeout(FIREFOX_TIMEOUT);
const { puppeteer } = getTestState();
const browser = await puppeteer.launch({ product: 'firefox' });
const userAgent = await browser.userAgent();
await browser.close();
expect(userAgent).toContain('Firefox');
});
itOnlyRegularInstall(
'should be able to launch Firefox',
async function () {
this.timeout(FIREFOX_TIMEOUT);
const { puppeteer } = getTestState();
const browser = await puppeteer.launch({ product: 'firefox' });
const userAgent = await browser.userAgent();
await browser.close();
expect(userAgent).toContain('Firefox');
}
);
});
describe('Puppeteer.connect', function () {