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

Use newer version of Puppeteer for UI tests #17880

Merged
merged 23 commits into from Sep 1, 2021
Merged

Use newer version of Puppeteer for UI tests #17880

merged 23 commits into from Sep 1, 2021

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Aug 12, 2021

Description:

We are still using Puppeteer 2.1.1, which uses a quite "old" Chromium version.
Puppeteer 8.0.0 will update that to Chromium 90.

Note: I'm note yet updating to version 10.2.0, as with version 10 some methods that we are using were removed, also for some reason the tests are hanging after a fixture is set up. Don't want to waste time trying to figure out what exactly needs to be changed.

Review

  • Functional review done
  • Potential edge cases thought about (behavior of the code with strange input, with strange internal state or possible interactions with other Matomo subsystems)
  • Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
  • Security review done see checklist
  • Code review done
  • Tests were added if useful/possible
  • Reviewed for breaking changes
  • Developer changelog updated if needed
  • Documentation added if needed
  • Existing documentation updated if needed

@sgiehl sgiehl added this to the 4.5.0 milestone Aug 12, 2021
@sgiehl sgiehl changed the title Use latest version of Puppeteer for UI tests Use newer version of Puppeteer for UI tests Aug 12, 2021
@sgiehl sgiehl force-pushed the updatepupeteer branch 20 times, most recently from 2a77f01 to 9ef353f Compare August 17, 2021 17:10
@mattab
Copy link
Member

mattab commented Aug 18, 2021

Is there any benefit to this project, besides maybe preventing some tech debt? Maybe this can wait for some months, or is there value in continuing this work now?

@sgiehl
Copy link
Member Author

sgiehl commented Aug 18, 2021

This ensures our tests are running with a more modern Chrome. In theory the newer version would even support running the tests with Firefox as well. Also there are a lot more features, that can be quite useful for writing better tests. In addition I hope this brings some more stability into our tests and reduces the random failures.

@Findus23
Copy link
Member

Especially this makes sure that the UI tests (and other JS tests) represent the reality of people using modern versions of web browsers instead of Chrom(e|ium) 80 which was released in 2019 and might not trigger bugs in Matomo caused by changes in how browsers work since then.

@sgiehl sgiehl force-pushed the updatepupeteer branch 5 times, most recently from 67076b1 to c5f95cd Compare August 19, 2021 14:17
@sgiehl sgiehl marked this pull request as ready for review September 1, 2021 13:29
@sgiehl sgiehl merged commit a3ee690 into 4.x-dev Sep 1, 2021
@sgiehl sgiehl deleted the updatepupeteer branch September 1, 2021 13:37
@justinvelluppillai justinvelluppillai added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants