test: migrate e2e tests from Cypress to Playwright#3272
Draft
skjnldsv wants to merge 3 commits into
Draft
Conversation
Cypress 13's Electron 118 user-agent is rejected by Nextcloud's unsupported-browser redirect (needs Chrome 142+), which broke the whole suite. Replace Cypress with Playwright (Chromium passes the check) and port all specs. - Add playwright config + docker bootstrap via @nextcloud/e2e-test-server - Reusable support utils (webdav, files, viewer, sidebar, share) and image/media/oddname mixins; role-based selectors throughout - Port all specs except visual-regression (dropped for now) - Replace cypress CI workflow with playwright.yml; remove Cypress deps Assisted-by: ClaudeCode:claude-fable-5
- workers: 4 with a 10s expect timeout (matching the previous Cypress waits) so heavier previews under parallel load do not flake - skip video.ogv: Playwright's bundled Chromium has no Ogg/Theora decoder (the viewer never leaves its loading state), unlike Cypress's Electron Assisted-by: ClaudeCode:claude-fable-5
workers:4 starves CPU on the single shared test container during the concurrent 15 MB image.png setups, flaking hooks and preview loads even with retries; 2 workers is stable and just as fast locally. Also give the viewer loading-state check a 30s ceiling (large preview generation) and raise the default expect timeout to 15s. Assisted-by: ClaudeCode:claude-fable-5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP
This PR was developed with AI assistance (Claude Code).