fix(website): the DLSS 5 settings card and tests follow the preset and model rows moving to the DLSS 5 page #2709

Merged
HumanBean merged 1 commit from HumanBean/Longshot:fix/website-dlss5-page-tests into main 2026-11-28 04:32:24 +00:00
Owner

Summary

Two tests in website/tests/graphics-settings.test.ts fail on main since #2582 moved the DLSS 5 preset and model rows to the DLSS 5 page: the settings table now names them on the DLSS 5 settings row's line, so they are no longer cards of their own (the page's other tuning rows never were). Fixing the tests alone would have left one wrong card: the table's new wording for DLSS 5 settings ("only on an RTX 50 card with both DLSS 5 files", about the model inside it) matched the badge rule for the old model row, so the page row would have shown an "RTX 50 with both DLSS 5 files" badge although it shows whenever DLSS 5 is On.

  • website/src/repo-docs/graphics-settings.ts: drop the RTX 50 badge rule, which no row owns now. A row that names a new condition still fails the build until a rule names it.
  • website/tests/graphics-settings.test.ts: the DLSS 5 test now holds the real outcome (DLSS 5 and DLSS 5 settings badges, the settings row not a restart row, no separate preset or model card, the row's line still naming the preset, the model and its restart wait, the "no condition" and page-registration drift checks); the restart list no longer has DLSS 5 model, which the menu lists on the page, not on Graphics.

To see it on main: scripts/website_check.sh (two failures in graphics-settings.test.ts). Read first: the DLSS 5 test.

Testing

Tested: Linux, scripts/website_check.sh: all 98 website tests pass; pre-commit on the changed files passes. Website only, nothing the game runs; the page text is unchanged, so there are no screenshots.

Still to test: None.

Measurements

Nothing to measure: a website test and badge rule, no game code.

Risks

Nothing a player sees changes except that the DLSS 5 settings card no longer carries a wrong RTX 50 badge; a revert is enough.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A check under tests/ that reads changed source is updated, not weakened.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

🤖 Generated with Claude Code

## Summary Two tests in `website/tests/graphics-settings.test.ts` fail on `main` since #2582 moved the DLSS 5 preset and model rows to the DLSS 5 page: the settings table now names them on the **DLSS 5 settings** row's line, so they are no longer cards of their own (the page's other tuning rows never were). Fixing the tests alone would have left one wrong card: the table's new wording for **DLSS 5 settings** ("only on an RTX 50 card with both DLSS 5 files", about the model inside it) matched the badge rule for the old model row, so the page row would have shown an "RTX 50 with both DLSS 5 files" badge although it shows whenever DLSS 5 is On. - `website/src/repo-docs/graphics-settings.ts`: drop the RTX 50 badge rule, which no row owns now. A row that names a new condition still fails the build until a rule names it. - `website/tests/graphics-settings.test.ts`: the DLSS 5 test now holds the real outcome (DLSS 5 and DLSS 5 settings badges, the settings row not a restart row, no separate preset or model card, the row's line still naming the preset, the model and its restart wait, the "no condition" and page-registration drift checks); the restart list no longer has DLSS 5 model, which the menu lists on the page, not on Graphics. To see it on `main`: `scripts/website_check.sh` (two failures in graphics-settings.test.ts). Read first: the DLSS 5 test. ## Testing **Tested:** Linux, `scripts/website_check.sh`: all 98 website tests pass; pre-commit on the changed files passes. Website only, nothing the game runs; the page text is unchanged, so there are no screenshots. **Still to test:** None. ## Measurements Nothing to measure: a website test and badge rule, no game code. ## Risks Nothing a player sees changes except that the DLSS 5 settings card no longer carries a wrong RTX 50 badge; a revert is enough. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(website): the DLSS 5 settings card and tests follow the preset and model rows moving to the DLSS 5 page
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Successful in 17s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been skipped
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been skipped
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been skipped
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been skipped
CI / Third-party parts and guide screenshots (pull_request) Failing after 23s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 24s
CI / Website build and checks (pull_request) Successful in 2m32s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 22m22s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 35m18s
PR description / Title and description (pull_request_target) Successful in 6s
b7931d8fcf
#2582 moved the DLSS 5 preset and model rows onto the DLSS 5 page, so the settings table names them on the DLSS 5
settings row and they have no cards. The page row no longer takes the RTX 50 badge of the old model row, and the tests
hold that outcome.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
HumanBean changed title from WIP: fix(website): the DLSS 5 settings card and tests follow the preset and model rows moving to the DLSS 5 page to fix(website): the DLSS 5 settings card and tests follow the preset and model rows moving to the DLSS 5 page 2026-11-28 04:32:19 +00:00
HumanBean deleted branch fix/website-dlss5-page-tests 2026-11-28 04:32:24 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2709
No description provided.