Skip to content

Tests: settings-tabs smoke expects the Chat tab sections the moved controls now live in - #18618

Merged
danielhanchen merged 1 commit into
mainfrom
ci/settings-tabs-composer-search-sections
Nov 20, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci/settings-tabs-composer-search-sections

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

The settings-tabs browser smoke (tests/studio/playwright_settings_tabs.py, run by Studio Frontend CI) fails on current main. It shows up on staging runs of unrelated PRs, e.g. #18473:

[settings-tabs] FAIL composer search: 'Chat width' reached {'tab': 'chat', 'label': 'Chat width', 'section': 'Customization'}
[settings-tabs] FAIL composer search: 'Composer position' reached {'tab': 'chat', 'label': 'Composer position', 'section': 'Customization'}
[settings-tabs] FAIL composer search: 'Composer outline' reached {'tab': 'chat', 'label': 'Composer outline', 'section': 'Customization'}
[settings-tabs] FAIL composer search: 'Attachments in sent messages' reached {'tab': 'chat', 'label': 'Attachments in sent messages', 'section': 'Chat defaults'}
[settings-tabs] 4 FAILURES

Cause

#18576 ("settings tidy") moved the four controls into new sections of Settings > Chat:

  • chat width, composer position and composer outline into a new Customization section;
  • sent-message attachments into Chat defaults.

That PR updated the unit test (chat-settings-sections.test.ts) but not this browser smoke, which still expects all four under the Composer section. Search itself works: each control is found and opens in the Chat tab. Only the expected section name is stale. So the product change is right and the test is out of date.

Change

  • playwright_settings_tabs.py: the expected (label, section) pairs are now a module constant, COMPOSER_SEARCH_SECTIONS, naming the section each control actually lives in. The check is otherwise unchanged: still searched from Appearance, still asserted to land in the Chat tab under that exact section.
  • New tests/studio/test_settings_tabs_composer_search_sections.py reads that constant (via ast, without importing Playwright) and checks each pair against chat-tab.tsx, so a later regrouping of the Chat tab fails in the unit tests instead of only in the browser run.

Testing

  • The new expectations match exactly what the failing run observed for all four controls ('Customization' x3, 'Chat defaults'). en_string resolves both section keys to those titles.
  • test_settings_tabs_composer_search_sections.py passes. Pointing one pair back at composerSettings.title fails it with chatBackground.outline sits under ['settings.chat.groups.customization.title'] in chat-tab.tsx, but playwright_settings_tabs.py expects composerSettings.title.
  • tests/studio/test_playwright_suites_run_in_ci.py and tests/test_source_read_encoding.py still pass.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T11:31:28.792412Z 8857521 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.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 8857521c58

ℹ️ 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