Repository navigation
fix(platform): name the dashboard test's controls by key - #4917
Closed
yannickmonney wants to merge 1 commit into
Closed
yannickmonney wants to merge 1 commit into
yannickmonney wants to merge 1 commit into
Conversation
The dashboard test found the session-lapse dialog's confirm button by the bare key `sessionLapse.signIn`, which only works while nothing has initialised the i18n singleton: an uninitialised t() returns its key. #4903 made api-client import auth-client-error, which imports the singleton, so from 07419b9 on the dashboard's import graph initialises English and the button is named "Sign in". The UI shard that holds the file has failed since (found by bisecting the test alone: green at 6480ade, red at 07419b9, with no other change between). Mock the translation hook the way the sibling session-lapse suites do, so the accessible name is `auth.sessionLapse.signIn` whatever the graph initialises.
yannickmonney
enabled auto-merge
October 13, 2026 08:23
Contributor
Author
|
Local result for |
5 tasks done
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
app/routes/dashboard.test.tsxfound the session-lapse dialog's confirm button by the bare keysessionLapse.signIn. That only works while nothing has initialised the i18n singleton, because an uninitialisedt()returns its key. #4903 madeapi-clientimportauth-client-error, which imports the singleton, so since07419b9cthe dashboard's import graph initialises English and the button is named "Sign in".UI (platform 1/4)has failed on every push tomainand every release candidate since (the one failing test of 1,582), and the release lane records it as hold H-U1.Found by bisecting the test alone: green at
6480adee, red at07419b9c, nothing else between them. This mocks the translation hook the way the sibling session-lapse suites do (session-lapse-drafts.test.tsx,dashboard-layout.test.tsx), so the accessible name isauth.sessionLapse.signInwhatever the graph initialises.Checklist
bun run check— the full gate runs in CI. Locally: the test file 4/4 (it failed 1/4 before), the three session-lapse siblings (43 tests across the four files), andUI (platform 1/4)run whole (results in the comment below).bun run lint:sast— N/A, a test file.Test plan
cd services/platform && bunx vitest --run --config vitest.ui.config.ts app/routes/dashboard.test.tsxgit stash-free proof: onmainthe same command fails withUnable to find role="button" and name "sessionLapse.signIn".