Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Leverage Puppeteer's native support for Firefox #356

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

pyoor
Copy link
Contributor

@pyoor pyoor commented Jun 4, 2020

Summary

This PR is to address #312. Puppeteer now supports firefox natively. As such, support for puppeteer-firefox is no longer required. This PR replaces the browser property in jest-puppeteer.config.js in favor of the native launch.product key.

Test plan

All existing tests pass and a new test was added to ensure that the launch.product value matches either firefox or chrome.

image

@Bialogs
Copy link

Bialogs commented Aug 11, 2020

I'm not sure this will work out of the box unless you also increase the puppeteer version in package.json to the version that supports Firefox .

Comment on lines -56 to -60
try {
return require('puppeteer')
} catch (e) {
return require('puppeteer-core')
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to keep the getPuppeteer function to allow using puppeteer or puppeteer-core

BREAKING CHANGE: browser config is deprecated use launch.product
instead.
@UziTech UziTech changed the title Leverage Puppeteer's native support for Firefox fix: Leverage Puppeteer's native support for Firefox Apr 16, 2021
@UziTech UziTech merged commit e54fb7e into argos-ci:master Apr 16, 2021
@pyoor pyoor deleted the native-firefox branch February 7, 2022 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants