Skip to content

Tests: follow the localized update banners from #16069 - #16090

Merged
danielhanchen merged 3 commits into
mainfrom
tests-update-banner-follow-catalog
Oct 30, 2026
Merged

danielhanchen merged 3 commits into
mainfrom
tests-update-banner-follow-catalog

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

#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:

Repo tests (CPU, studio)
  test_update_release_notes.py::test_banners_toggle_inline_release_notes[banner1]
  test_update_release_notes.py::test_notes_toggle_shares_the_action_row[banner1-tauri-update-release-notes-toggle-Remind me later]
  test_desktop_reliability_frontend_contract.py::test_collapsed_tauri_keeps_history_arrows_and_adds_new_chat_by_model_picker
Chat UI Tests
  [banner] FAIL 1440x900: three pending runtimes share the one card summary='llama.cpp, whisper.cpp, and audio.cpp · No restart needed'
  (same at all 6 viewports)

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"), hideNotes and remindLater. 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 a t("key") call whose en.ts value is that label. It uses the shared tests/studio/_en_catalog.py reader. 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")} and goForward, and their English is still "Go back" and "Go forward". _aria_label_count counts a label written literally or through a t() 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.py now matches llama\.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 at goForward fails it.
  • Sabotage: rendering nothing for the Tauri notes toggle fails test_banners_toggle_inline_release_notes. Switching the dismiss button from remindLater to later fails test_notes_toggle_shares_the_action_row.
  • The new matcher accepts the formatted summary and the old form. It rejects a missing or reordered runtime.
  • The tests that import the layout driver pass (218 passed with the release notes file).

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.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T09:48:09.680426Z ae63f41 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 395c4cf145

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

pre-commit-ci Bot and others added 2 commits October 30, 2026 09:31
#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.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: ae63f4194c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

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