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: do not hard-code chrome for interactive e2e #15837

Merged
merged 3 commits into from
Apr 8, 2021

Conversation

lmiller1990
Copy link
Contributor

User facing changelog

Do not assume chrome exists on every machine when launching the component testing runner in interactive mode.

Additional details

Some machines will not have chrome installed. In that case, we fall back to chromium -> edge -> electron etc.

How has the user experience changed?

Do not throw an error when running yarn cypress open-ct if Chrome is not installed.

PR Tasks

  • Have tests been added/updated?
  • Has the original issue or this PR been tagged with a release in ZenHub? 7.0.1

@lmiller1990 lmiller1990 requested a review from a team April 7, 2021 01:45
@lmiller1990 lmiller1990 requested a review from a team as a code owner April 7, 2021 01:45
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 7, 2021

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Apr 7, 2021



Test summary

9492 0 111 3Flakiness 1


Run details

Project cypress
Status Passed
Commit ab8eeef
Started Apr 8, 2021 1:31 AM
Ended Apr 8, 2021 1:43 AM
Duration 12:01 💡
OS Linux Debian - 10.8
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

cypress/integration/retries.ui.spec.js Flakiness
1 runner/cypress retries.ui.spec > opens attempt on each attempt failure for the screenshot, and closes after test passes

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

Copy link
Contributor

@agg23 agg23 left a comment

Choose a reason for hiding this comment

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

Looks good other than the nit about Set

Comment on lines +7 to +11
const browserMap = installedBrowsers.reduce((acc, curr) => {
acc[curr.name] = true

return serverCt.start(projectRoot, options)
return acc
}, {})
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a Set instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there an objective reason that is better?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's cleaner and more clear

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops I merged, I'll make this change when I'm in this area again (prob soon). Thanks!

@lmiller1990 lmiller1990 merged commit e8dbffe into develop Apr 8, 2021
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.

open-ct complains about missing browser but open works fine
2 participants