-
Notifications
You must be signed in to change notification settings - Fork 16.1k
feat(playwright): Remove Cypress auth tests in favor of Playwright auth tests #35938
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
base: master
Are you sure you want to change the base?
Conversation
Removes the deprecated Cypress authentication tests and makes Playwright
authentication tests required for CI by removing shadow mode.
Changes:
- Remove `continue-on-error: true` from Playwright workflow
- Delete `superset-frontend/cypress-base/cypress/e2e/auth/login.test.ts`
- Playwright auth tests now block CI on failure
The Playwright tests have been running in parallel with Cypress tests
long enough to validate reliability with no false positives/negatives.
Playwright provides full test coverage with enhanced error detection
through Page Object Model pattern and multiple selector strategies.
Both app_root configurations ("" and "/app/prefix") are tested and
validated by the Playwright workflow.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Code Review Agent Run #72b6e3Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This enhances the Playwright workflow to support ongoing test migration: **New Structure:** - `playwright-tests` (required): Runs stable tests, blocks merge on failure - `playwright-tests-experimental` (shadow mode): Runs experimental/ tests with continue-on-error **Changes:** - Split workflow into two jobs for separate status reporting - Updated bashlib.sh to accept TEST_PATH parameter - Created tests/experimental/ directory with migration documentation - Default behavior: run all tests except experimental/ **Migration Path:** New Playwright tests go in experimental/ for validation, then `git mv` to stable when proven. **Branch Protection:** Add `playwright-tests` job to required status checks to enforce. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
48ef323 to
fd223a0
Compare
SUMMARY
This PR completes the migration from Cypress to Playwright for authentication tests by:
The Playwright auth tests have been running in parallel with Cypress tests long enough to validate reliability with no false positives or negatives observed. The Playwright implementation provides full test coverage with enhanced error detection through the Page Object Model pattern and multiple selector strategies.
Changes:
Removed deprecated Cypress auth test
superset-frontend/cypress-base/cypress/e2e/auth/login.test.tsSplit Playwright workflow into required and experimental jobs
playwright-tests(required): Runs stable tests, failures block mergeplaywright-tests-experimental(shadow mode): Runs experimental tests withcontinue-on-error: trueCreated directory-based test organization
Migration Path for Future Tests
When migrating tests from Cypress to Playwright:
playwright/tests/experimental/git mvto parent directoryZero workflow maintenance required when adding or promoting tests.
Test Coverage Verified:
""and"/app/prefix"The Playwright workflow tests both app_root configurations and will now be required for merge, ensuring authentication functionality is properly validated in all deployment scenarios.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION