Skip to content

Split the UI e2e tests by feature (4.3) - #187

Merged
firegiant9000 merged 2 commits into
mainfrom
w4-split-e2e
Nov 18, 2026
Merged

firegiant9000 merged 2 commits into
mainfrom
w4-split-e2e

Conversation

@firegiant9000

Copy link
Copy Markdown
Owner

Wave 4 item 4.3: split the UI e2e suite by feature. Tests only. No test body, assertion or timeout changes.

What changes

  • src/Ui/e2e/flow.e2e.tsx (3,887 lines, 69 tests) is removed. Its tests move unchanged into eight feature files:

    File Lines Tests
    core 425 10
    builder 652 10
    studio 733 10
    studio-tools 342 6
    sources-import 487 8
    sharing 486 8
    play 463 9
    character-import 382 8
  • forms.e2e.tsx (913 lines, 13 tests) splits into forms.e2e.tsx (5 tests) and forms-play.e2e.tsx (8 tests).

  • Shared helpers are in e2e/helpers.tsx. Each file keeps its own vi.mock blocks and afterEach cleanup.

  • vitest.e2e.config.ts sets fileParallelism: false:

    • All files share one DevHost.
    • Sources sort by GUID.
    • More files in parallel would add load to that DevHost.
  • Order-dependent tests stay together and in their original order. For example, the "Cancel writes no reference drafts" test still runs first among the D&D Beyond imports.

  • Totals: 82 tests, as before. No e2e file is over 800 lines.

  • Proof the tests are unchanged:

    • The list of every it( name before and after is identical.
    • Test bodies were moved by line range, not retyped.
  • Docs that named flow.e2e.tsx, or that now point at forms-play.e2e.tsx, are updated. CHANGELOG is updated.

Gate

  • Lint clean, UI build and dotnet build (0 warnings) OK.
  • e2e: 81 of 82 passed on a heavily loaded machine (1,345 s). One test timed out at 60 s, core's first. It passes when its file runs alone (10/10).
  • Vitest timed out in unchanged component tests for the same load reason.
  • CI gates this PR. The local gate runs again on a quiet machine before merge.

Review

reviewer-logic: ship. Three doc and comment nits are fixed in 8d1f33b.

Owner

  • Gate 8–9.
  • Merge (merge commit).

flow.e2e.tsx (69 tests) becomes eight feature files and forms.e2e.tsx (13) becomes two, with shared helpers in e2e/helpers.tsx. Test bodies are moved unchanged; the total stays 82. The e2e config runs files one after another because they share one DevHost. Docs that named flow.e2e.tsx point at the new files.
@firegiant9000
firegiant9000 merged commit 2b28f31 into main Nov 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant