Skip to content

test(admin): Speed up customer details tests - #123102

Draft
scttcper wants to merge 2 commits into
masterfrom
scttcper/speed-customer-details-test
Draft

test(admin): Speed up customer details tests#123102
scttcper wants to merge 2 commits into
masterfrom
scttcper/speed-customer-details-test

Conversation

@scttcper

@scttcper scttcper commented Aug 29, 2026

Copy link
Copy Markdown
Member

This suite was mounting the full customer details page over and over to check the same action menu and modal plumbing.

Consolidates overlapping cases around the distinct visibility and mutation behavior they cover, and resets ConfigStore per test so permissions do not leak between cases.

Before After
Tests 63 39
Focused suite 8.75s 5.97s

about a third faster and a thousand lines less test noise.

The suite repeatedly mounted the full customer details page to check the same menu and modal plumbing.

Consolidate overlapping scenarios around the distinct actions they cover and reset ConfigStore per test so permissions no longer leak between cases. Cuts the focused suite from 63 tests to 39 and about a third off the runtime.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 29, 2026
@scttcper scttcper changed the title perf(gs-admin): Speed up customer details tests test(admin): Speed up customer details tests Aug 30, 2026
Put the router and organization setup back at each call site instead of hiding it behind a shared helper.

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

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant