Skip to content

Tests: follow the media header's MediaHeaderActions row from #15919 - #15946

Merged
danielhanchen merged 2 commits into
mainfrom
tests-follow-media-header-actions
Oct 29, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
tests-follow-media-header-actions

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Repo tests (CPU, studio) is red on main since #15919, and on every PR based after it (seen on staging for #15928, #15931 and #15934). Three tests in tests/studio/test_desktop_reliability_frontend_contract.py fail:

  • test_audio_page_matches_the_image_rail_header_and_action_footer
  • test_images_header_tracks_preview_and_preserves_titlebar_controls
  • test_media_page_headers_out_stack_the_mac_drag_region

#15919 rebuilt the Images, Video and Audio headers on purpose: Create / Train is centred in a minmax(0,1fr)_auto_minmax(max-content,1fr) row, and the API / Library / sibling links moved into the new MediaHeaderActions component, which steps down (pill off centre, compact, then hidden) as space runs short. The product is right and the tests pinned the old class strings, so the tests are what changes here.

What changed

  • A shared _assert_media_header_row check for the Images and Audio headers: the new row columns, the pill centred in column 2 (data-media-header-centre ... col-start-2 justify-self-center), and the links rendered inside <MediaHeaderActions> (the Library and sibling links are now asserted to sit inside it, not just somewhere in the header).
  • MediaHeaderActions itself is pinned to what the old inline markup guaranteed: its slot stays pointer-events-none col-start-3 row-start-1 (so gaps in the band still drag the macOS window) and only the links' group is pointer-events-auto.
  • The macOS drag-region test counts the clickable group drawn by MediaHeaderActions when a page renders it, since that group no longer appears in the page source.

Verification

  • Base (main at 862098ed4a): 3 failed, 41 passed. Bisected to Studio: Decision tab loads at once, System and settings polish, main-theme borders restored #15919: its parent passes all 44.
  • Head: 44 passed.
  • Each guard still fails when the property it protects breaks (source edited, test run, reverted):
    • slot made pointer-events-auto: Images and Audio header tests fail
    • links group no longer pointer-events-auto: all three fail
    • Images sibling link moved out of MediaHeaderActions: Images header test fails
    • Audio pill set to justify-self-end: Audio header test fails

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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 ⚠️ Failed 2026-10-29T10:40:40.515130Z
We couldn’t complete this review. Comment @codex review to try again.
9aa69f5 PR opened
ℹ️ 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. Delightful!

Reviewed commit: 9aa69f5f76

ℹ️ 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 9bc89f8 into main Oct 29, 2026
0 of 16 checks passed
@danielhanchen
danielhanchen deleted the tests-follow-media-header-actions branch October 29, 2026 11:18
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