Repository navigation
Tests: follow the localized update banners from #16069 - #16090
Conversation
The Tauri banner's notes toggle and Remind me later now render through t(), so the release notes contract tests find a label either literally or through the en catalog. The runtime card joins names with Intl.ListFormat, whose English carries a serial comma, so the Playwright layout check accepts either form.
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
#16069 moved the Go back / Go forward aria-labels onto t(desktopShell.goBack / goForward), so test_collapsed_tauri_keeps_history_arrows_and_adds_new_chat_by_model_picker found none.
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
#16069 (fill locale gaps and translate the sign-in, consent and Desktop startup screens) moved the update banners onto
t(). Two checks that pinned the old English literals went red on main. They fail on unrelated PRs, for example #16085:In both cases the product is right and the tests read the old text.
Release notes toggle contract
The Tauri banner now renders
t("desktopUpdate.banner.showNotes"),hideNotesandremindLater. Their English, "Show release notes", "Hide release notes" and "Remind me later", is unchanged. A new_shown_at(src, label)helper finds a label either as literal text, which is how the web banner still renders it, or as at("key")call whoseen.tsvalue is that label. It uses the sharedtests/studio/_en_catalog.pyreader. The ordering check (toggle before the action, in the same row) uses the position of whichever form is present. A unit test pins the helper: literal, through the catalog, and a key whose English differs.Titlebar history arrows
The titlebar's back and forward buttons now carry
aria-label={t("desktopShell.goBack")}andgoForward, and their English is still "Go back" and "Go forward"._aria_label_countcounts a label written literally or through at()key whose English matches, and a unit test pins it.Runtime card summary
The card now joins runtime names with
Intl.ListFormat(locale, { type: "conjunction" }), which is correct for every locale and gives English a serial comma.playwright_update_banner_layout.pynow matchesllama\.cpp, whisper\.cpp,? and audio\.cpp. The names must still appear in that order and joined as one list.Verification
tests/studio/test_update_release_notes.py: 2 failed on main, 203 passed here.tests/studio/test_desktop_reliability_frontend_contract.py: 1 failed on main, 45 passed here. Pointing the back button atgoForwardfails it.test_banners_toggle_inline_release_notes. Switching the dismiss button fromremindLatertolaterfailstest_notes_toggle_shares_the_action_row.