Skip to content

test(Identities): Cover the identities list, identity page, traits and overrides - #9011

Open
talissoncosta wants to merge 2 commits into
mainfrom
test/identities-e2e
Open

talissoncosta wants to merge 2 commits into
mainfrom
test/identities-e2e

Conversation

@talissoncosta

Copy link
Copy Markdown
Contributor

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

Adds E2E coverage for identities ahead of moving the identity page from Flux to RTK Query, so the migration has a safety net.

  • Create, search, direct load and delete identities
  • Identity page direct load, add and remove a trait
  • Override a flag for an identity, then reset it

Each test uses its own project and accessible selectors (no new data-test).

How did you test this code?

  • Passed 3/3 against staging, plus 2 repeats with no flakes
  • Not covered: Edge-only behaviour (aliases), as CI's API isn't Edge

@talissoncosta
talissoncosta requested a review from a team as a code owner November 18, 2026 16:11
@talissoncosta
talissoncosta requested review from kyle-ssg and removed request for a team November 18, 2026 16:11
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
flagsmith-frontend-preview Ready Ready Preview Nov 26, 2026 7:53pm UTC
flagsmith-frontend-staging Ready Ready Preview Nov 26, 2026 7:53pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Preview Nov 26, 2026 7:53pm UTC

Request Review

@talissoncosta talissoncosta changed the title test(Identities): Cover the identities list, identity page, traits and overrides [WIP] test(Identities): Cover the identities list, identity page, traits and overrides Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

Adds Playwright end-to-end tests for identity creation, search, and deletion. The tests also cover direct identity page loads, trait editing, and per-identity feature-flag overrides. Each test logs in and creates a uniquely named project.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: Minimal · up to 5dbad

This PR adds end-to-end test coverage for identities and makes no production code changes. It carries no meaningful merge risk, though the PR title should be fixed to satisfy the conventional commit check.

Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added the front-end Issue related to the React Front End Dashboard label Nov 18, 2026
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-9011 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-9011 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9011 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-e2e:pr-9011 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith:pr-9011 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-frontend:pr-9011 Finished ✅ Results ✅

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 1 file

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 440b63fd-71ad-4b71-b19e-c78204c1cb47
Commits

Reviewing files that changed from the base of the PR and between d465e74 and 5dbad22.

Files selected for processing: 1

  • frontend/e2e/tests/identities-test.pw.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-16 — run #23863 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  57.6 seconds
commit  2cd7699
info  🔄 Run: #23863 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23863 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  4 passed

Details

stats  4 tests across 4 suites
duration  54.8 seconds
commit  2cd7699
info  🔄 Run: #23863 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23863 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  36.1 seconds
commit  2cd7699
info  🔄 Run: #23863 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23863 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  31.1 seconds
commit  2cd7699
info  🔄 Run: #23863 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #23421 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  5 passed

Details

stats  5 tests across 3 suites
duration  45.6 seconds
commit  5dbad22
info  🔄 Run: #23421 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23421 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  3 passed

Details

stats  3 tests across 2 suites
duration  9.4 seconds
commit  5dbad22
info  🔄 Run: #23421 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23421 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  33.1 seconds
commit  5dbad22
info  🔄 Run: #23421 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23421 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  37.1 seconds
commit  5dbad22
info  🔄 Run: #23421 (attempt 1)

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Visual Regression

29 screenshots compared. See report for details.
View full report

talissoncosta and others added 2 commits November 26, 2026 15:42
…d overrides

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@talissoncosta talissoncosta changed the title [WIP] test(Identities): Cover the identities list, identity page, traits and overrides test(Identities): Cover the identities list, identity page, traits and overrides Nov 26, 2026
@talissoncosta
talissoncosta marked this pull request as ready for review November 26, 2026 19:52
@github-actions github-actions Bot added testing and removed testing labels Nov 26, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds E2E coverage for identity list, traits, and flag overrides; no production code changes. The dismissed P2 finding claims the reset test now checks the override description disappears, but the diff truncates exactly that section, so the fix is unverified.
Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack

Turn on auto-fix | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds E2E coverage for identity list, traits, and flag overrides; no production code changes. The dismissed P2 finding claims the reset test now checks the override description disappears, but the diff truncates exactly that section, so the fix is unverified.

Turn on auto-fix | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds E2E coverage for identity list, traits, and flag overrides; no production code changes. The dismissed P2 finding claims the reset test now checks the override description disappears, but the diff truncates exactly that section, so the fix is unverified.

Turn on auto-fix | Re-trigger cubic

This branch was successfully deployed

2 active deployments
Preview – flagsmith-frontend-preview — 2cd7699c Deployed Nov 26, 2026 by vercel[bot]
Preview – flagsmith-frontend-staging — 2cd7699c Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant