Skip to content

test: Use Playwright + agenda start/end dates fix - #4471

Merged
rjsparks merged 36 commits into
ietf-tools:mainfrom
NGPixel:playwright
Sep 20, 2022
Merged

test: Use Playwright + agenda start/end dates fix#4471
rjsparks merged 36 commits into
ietf-tools:mainfrom
NGPixel:playwright

Conversation

@NGPixel

@NGPixel NGPixel commented Sep 17, 2022

Copy link
Copy Markdown
Member
  • Replaced Cypress with Playwright for faster, consistent and non-flaky frontend tests.

Gave up on Cypress as it would always give inconsistent results between runs and machines for no apparent reason.

Playwright is a newer alternative to Cypress, made by the VS Code team, fully open source. Instead of using the system browsers via a limited testing API, it downloads precompiled chromium, firefox and webkit binaries modified specifically for Playwright. This results in very consistent tests and bypasses many limitations present in Cypress. It's compatible with Browserstack / Percy and has great VS Code integration (code completion, validation, debugging and test panel integration).

It also has a Python version 🎉. Same exact API as the Node.js one. Could be used to replace selenium if needed, but I still think we should fully decouple the frontend / backend tests as discussed (standard unit tests for django APIs and playwright tests with mocked API responses for frontend).

Note: Cypress is still present for the 2 small nomcom tests, although it would be very quick to modify them to run in Playwright and completely get rid of Cypress.

  • Converted all agenda / floor plan tests to Playwright + tested them on GitHub Actions repeatedly. Multiple small tests that had to be commented out in Cypress (because of limitations or inconsistent results) are now working perfectly in Playwright.

  • Build workflow was modified to run Playwright tests in both chromium and firefox (in parallel).

  • Fixed incorrect meeting dates shown in agenda title block #4463

@NGPixel
NGPixel requested a review from rjsparks September 17, 2022 06:21
@rjsparks
rjsparks merged commit 143877e into ietf-tools:main Sep 20, 2022
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

incorrect meeting dates shown in agenda title block

2 participants