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 () { 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 () {