Skip to content

Onboarding: e2e coverage, rename keeps tags, accessible names#7867

Closed
talissoncosta wants to merge 3 commits into
feat/onboarding-terminal-flags-table-7766from
feat/onboarding-e2e-rename-robustness
Closed

Onboarding: e2e coverage, rename keeps tags, accessible names#7867
talissoncosta wants to merge 3 commits into
feat/onboarding-terminal-flags-table-7766from
feat/onboarding-e2e-rename-robustness

Conversation

@talissoncosta

Copy link
Copy Markdown
Contributor
  • 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

Stacked on #7856. Follow-up from Wadii's review of the onboarding flow: e2e coverage plus a couple of robustness fixes.

  • Rename preserves tags. Feature names are immutable, so the onboarding "rename" is a delete + recreate. The recreate started a bare flag, dropping the Onboarding tag attached in bootstrap (the badge vanished). It now carries over the old flag's tags/type/description.
  • Accessible names. The two copy buttons were both "Copy Code" (ambiguous for assistive tech), the flags toggle had no accessible name, and the flags table wasn't a labelled region. Fixed all three; this also gives the e2e a stable, a11y-based handle (no test-ids).
  • E2E. New-user happy path behind onboarding_quickstart_flow: sign up, land on the flow, copy the install/wire snippets (checklist ticks), toggle the Development flag, rename it (asserting the tag survives), and the ?connected state. Selectors are accessibility-first (roles / labels / text).

How did you test this code?

Components type-check and lint clean. The e2e spec runs with npm run test -- tests/onboarding-tests.pw.ts (with onboarding_quickstart_flow on); staying in draft until it has a green run.

talissoncosta and others added 3 commits June 24, 2026 09:07
Feature names are immutable, so the onboarding "rename" is a delete + recreate.
The recreate started a bare flag, dropping the Onboarding tag attached in
bootstrap (the badge vanished). Carry over the old flag's tags/type/description
so the rename is non-lossy for what onboarding sets.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The two "Copy Code" buttons were indistinguishable to assistive tech, the flags
table toggle had no accessible name, and the table wasn't a labelled region.
Give the copy buttons distinct aria-labels, name the switch per flag, and label
the flags region. Doubles as stable a11y-based handles for e2e (no test-ids).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
New-user happy path behind onboarding_quickstart_flow: sign up, land on the
flow, copy the install/wire snippets (checklist ticks), toggle the Development
flag, rename it (asserting the Onboarding tag survives the delete+recreate), and
exercise the connected state via ?connected. Selectors are accessibility-first
(roles / labels / text), not data-test ids.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
flagsmith-frontend-preview Ready Ready Preview, Comment Jun 24, 2026 9:31pm
flagsmith-frontend-staging Ready Ready Preview, Comment Jun 24, 2026 9:31pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Jun 24, 2026 9:31pm

Request Review

@talissoncosta

Copy link
Copy Markdown
Contributor Author

Folded into #7856 — the accessible names, the rename tag-preservation fix, and the e2e spec all landed there, so the stack is collapsed into one PR.

@talissoncosta talissoncosta deleted the feat/onboarding-e2e-rename-robustness branch June 25, 2026 12:15
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant