Skip to content

Tests: read the titlebar-height mirror through fullscreen's customTop - #17592

Merged
danielhanchen merged 1 commit into
mainfrom
tests-titlebar-mirror-fullscreen
Nov 12, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
tests-titlebar-mirror-fullscreen

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Repo tests (CPU, studio) fails on main since #17213, and on every PR based on it (seen in staging runs for #17496 and #17557):

tests/studio/test_desktop_reliability_frontend_contract.py::test_fixed_sheets_start_below_the_custom_titlebar
E   assert 'set("--studio-custom-titlebar-height", usesCustomTitlebar ? "34px" : null)' in '...'

#17213 (F11 fullscreen) hides the custom titlebar in fullscreen, so the <html> mirror in provider.tsx now reads:

const customTop = customTitlebarHidden ? "0px" : "34px";
set("--studio-custom-titlebar-height", usesCustomTitlebar ? customTop : null);

That is correct: in fullscreen the titlebar band is gone, and portalled sheets should start at the top edge. The test pinned the old line character for character, so it failed on a change that keeps everything it was written to protect. The mirror is still there, and it still gives 34px whenever the titlebar shows.

Change

tests/studio/test_desktop_reliability_frontend_contract.py:

  • _mirrored_titlebar_heights() finds the set("--studio-custom-titlebar-height", usesCustomTitlebar ? <value> : null) call and resolves <value>. A string literal is read directly; a local such as customTop is read from its const declaration.
  • test_fixed_sheets_start_below_the_custom_titlebar now asserts that the mirror exists, that it yields 34px, and that it yields nothing other than 34px or the fullscreen 0px. The rest of the test is unchanged.
  • test_the_titlebar_mirror_reader_follows_a_local covers the reader: the old literal form, the new local form, and a different property that must not match.

No app code changes.

Testing

  • tests/studio/test_desktop_reliability_frontend_contract.py: 46 passed (1 failed on main).
  • With the mirror line removed from provider.tsx, the test fails. With the shown height changed from 34px to 30px, it also fails.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 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-12T14:03:17.188525Z 722cbbc 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. Keep it up!

Reviewed commit: 722cbbc7ee

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

@danielhanchen
danielhanchen merged commit 2e1f00c into main Nov 12, 2026
@danielhanchen
danielhanchen deleted the tests-titlebar-mirror-fullscreen branch November 12, 2026 14:22
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