Skip to content

Health Check OR-requirement E2E tests + atomic step refactor (LAZ-911) - #23901

Draft
chnexusmods wants to merge 1 commit into
masterfrom
christopherhardy-laz-911
Draft

Health Check OR-requirement E2E tests + atomic step refactor (LAZ-911)#23901
chnexusmods wants to merge 1 commit into
masterfrom
christopherhardy-laz-911

Conversation

@chnexusmods

Copy link
Copy Markdown
Contributor

What

Adds E2E coverage for the File Requirements Health Check OR case — a requirement satisfiable by more than one alternative ("this file or that file"), where the user must pick one:

  • Fixture: SDV_OR_FILE_REQUIREMENT_MOD_URL (SDV mod 47938) + a DRY-shared openOrFileRequirementWarning helper (installAndSurfaceFileWarning).
  • POM: HealthCheckWarnings.pickModInstall(), and HealthCheckDetail.pickOneHeader / requiresPickLine / orDivider.
  • Free — render: the OR surfaces as a warning offering a choice ("Pick mod install" → detail "Pick one of these" + "…to be picked…" + an "Or" divider between the option cards).
  • Premium — resolve: picking one alternative satisfies the OR and clears the warning.

Also refactors the file-requirement spec to the one-action / one-assertion pattern from E2E-BEST-PRACTICES.md (split hover-reveal from click, reason-select from send, per-mod manual downloads, spy-arm from link-open, and install from the return-to-list observation).

Why draft

The tests are statically green (typecheck + lint + format) but not yet runtime-validated — local E2E is captcha-blocked, so the e2e (vortex-e2e) CI leg is the first real run. Leaving as a draft until CI confirms:

  1. Fixture 47938 actually surfaces a file-level OR pick (not page-level; both alternatives unowned).
  2. Three best-guess intermediate assertions hold: the requirement group unmounting (toBeHidden) after install; sendButton enabling after a feedback reason is chosen; the warning persisting until the last manual download.

If any of those fails, I'll adjust the fixture/assertions before marking it ready for review.

🤖 Generated with Claude Code

…AZ-911)

Cover the file-requirement "pick one of several alternatives" (OR) case:
- SDV_OR_FILE_REQUIREMENT_MOD_URL (47938) fixture + openOrFileRequirementWarning
  helper (DRY-shared with the missing-requirement opener via installAndSurfaceFileWarning).
- HealthCheckWarnings.pickModInstall() and HealthCheckDetail pickOneHeader /
  requiresPickLine / orDivider POM members.
- Free-user render test (the "Pick mod install" / "Pick one of these" / "to be
  picked" / "Or" divider choice UI) and a premium resolve test (picking one
  alternative satisfies the OR and clears the warning).

Also refactor the file-requirement spec to the one-action/one-assertion pattern
in E2E-BEST-PRACTICES.md: split hover-reveal from click, reason-select from send,
per-mod manual downloads, spy-arm from link-open, and install from the
return-to-list observation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@chnexusmods
chnexusmods force-pushed the christopherhardy-laz-911 branch from 156a0f3 to c891cd0 Compare August 6, 2026 15:06
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