Skip to content

Conversation

@kyle-ssg
Copy link
Member

@kyle-ssg kyle-ssg commented Jan 20, 2026

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Playwright Test Improvements

Faster Tests

  • Inputs are really fast compared to TestCafe
  • Tests are passing in CI around 2m30s vs ~4m

Better local Development

  • Tests are re-runable via ui (you'l have to run npm run test:teardown before clicking play again)
  • Tests come with videos and clickable traces (these get uploaded from GitHub on failures too)
  • Tests can be ran very quickly
image

main_large

Added Claude command

/e2e - debug / fix e2e, keeps running failed tests until they pass
/new-e2e - Creates a new test using standard patterns and appropriately applying oss/enterprise tags

image

HTML Reports

  • Interactive dashboard with search/filter
  • Test timeline and duration metrics
  • Detailed error messages with stack traces

e.g. this is a downloaded report, we can access reports of failures as well as videos / interactive traces.

image image image image

CI/CD Features

GitHub Integration

  • Sticky PR comments with failure summaries
  • Direct links to ZIP artifacts containing:
    • HTML report
    • Videos of failures
    • Interactive traces
    • Screenshots
  • Automatic artifact cleanup
image image

How did you test this code?

  • No code changes, all e2e refactoring
  • Run local image and keep track of any failures
image

kyle-ssg and others added 30 commits August 5, 2025 16:27
Co-authored-by: Zaimwa9 <wadii.zaim@flagsmith.com>
# Conflicts:
#	frontend/web/components/pages/UserPage.tsx
kyle-ssg and others added 2 commits January 22, 2026 00:10
…okups

- Updated deleteFeature() to accept feature name instead of index
- Updated toggleFeature() to find features by name dynamically
- Added helper functions: getFeatureIndexByName(), clickFeatureAction(), waitForFeatureSwitch(), waitForFeatureSwitchClickable()
- Updated all test files to use feature names instead of hardcoded indices
- Fixed timeout issues in initialise-tests and invite-test by replacing waitForElementFocused with robust navigation waits
- Updated versioning helpers (goToFeatureVersions, compareVersion, assertNumberOfVersions) to use feature names

This makes tests more resilient to feature list ordering changes and improves test readability.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants