Skip to content

test(zoom): restore the close, context color, tab stop and stop() tests that #14 dropped - #490

Merged
vite-hub[bot] merged 1 commit into
mainfrom
test/restore-zoom-e2e
Nov 25, 2026
Merged

vite-hub[bot] merged 1 commit into
mainfrom
test/restore-zoom-e2e

Conversation

@onmax

@onmax onmax commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Five zoom e2e tests and the lastFrame helper have been missing since #14. Its branch was older than #11 and #16, and the squash (142b3d0) deleted what they had added to e2e/zoom.e2e.ts. The code they test is still in packages/zoom/src/script.ts, untested.

This puts them back against today's fixtures:

  • a zoomed block closes onto the original without a jump
  • a zoomed screenshot keeps the dialog's text color inside its context
  • Enter on an item inside a slide opens that slide, the only zoom tab stop
  • an item nested in one added later stops being a tab stop, unless its author set the tabindex
  • stopping the zoom while it's open gives the page its scroll restoration back

Three things differ from the originals. The closing test and lastFrame are in e2e/motion-zoom.e2e.ts, because the closing travel comes from comark-motion since #474 and the zoom-only renderer closes at once. The Enter test steps over each screenshot's Copy button, which #26 added, and asserts the whole tab order. The screenshot's zoom item is .ca-stage now. The offsetHeight test that #14 left in place of the closing test stays, since it covers a ratio line height and a serif font that the restored fixture does not.

Tested: playwright test e2e/zoom.e2e.ts e2e/motion-zoom.e2e.ts passes (43). With four lines of packages/zoom/src/script.ts broken (nested tabindex removal, shell.style.color = "inherit", restore() on stop, the line-height probe) and the package rebuilt, exactly the five restored tests fail. Format, lint and typecheck pass.

Not checked: the rest of the e2e suite and pnpm ready. Chromium only, as the Playwright config says.

…ts that #14 dropped

#14 (142b3d0) merged a stale branch over e2e/zoom.e2e.ts and deleted five tests and the lastFrame helper that 26233e9 had.

They are back against today's fixtures. The closing test and lastFrame live in e2e/motion-zoom.e2e.ts, since the closing travel has come from comark-motion since #474 and the zoom-only renderer closes at once. The screenshot's zoom item is now .ca-stage, and the tab order steps over each screenshot's Copy button, which #26 added.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-25T10:42:59.258880Z
We couldn’t complete this review. Comment @codex review to try again.
42d6ed2 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

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vite-hub

vite-hub Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

@pkg-pr-new

pkg-pr-new Bot commented Nov 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@490

comark-badge

pnpm add https://pkg.pr.new/comark-badge@490

comark-bundle

pnpm add https://pkg.pr.new/comark-bundle@490

comark-cards

pnpm add https://pkg.pr.new/comark-cards@490

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@490

comark-cast

pnpm add https://pkg.pr.new/comark-cast@490

comark-charts

pnpm add https://pkg.pr.new/comark-charts@490

comark-chat

pnpm add https://pkg.pr.new/comark-chat@490

comark-chips

pnpm add https://pkg.pr.new/comark-chips@490

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@490

comark-code

pnpm add https://pkg.pr.new/comark-code@490

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@490

comark-colors

pnpm add https://pkg.pr.new/comark-colors@490

comark-comments

pnpm add https://pkg.pr.new/comark-comments@490

comark-critic

pnpm add https://pkg.pr.new/comark-critic@490

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@490

comark-details

pnpm add https://pkg.pr.new/comark-details@490

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@490

comark-diff

pnpm add https://pkg.pr.new/comark-diff@490

comark-embed

pnpm add https://pkg.pr.new/comark-embed@490

comark-fields

pnpm add https://pkg.pr.new/comark-fields@490

comark-figure

pnpm add https://pkg.pr.new/comark-figure@490

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@490

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@490

comark-git-graph

pnpm add https://pkg.pr.new/comark-git-graph@490

comark-github

pnpm add https://pkg.pr.new/comark-github@490

comark-icon

pnpm add https://pkg.pr.new/comark-icon@490

comark-include

pnpm add https://pkg.pr.new/comark-include@490

comark-keys

pnpm add https://pkg.pr.new/comark-keys@490

comark-links

pnpm add https://pkg.pr.new/comark-links@490

comark-linter

pnpm add https://pkg.pr.new/comark-linter@490

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@490

comark-mark

pnpm add https://pkg.pr.new/comark-mark@490

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@490

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@490

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@490

comark-media

pnpm add https://pkg.pr.new/comark-media@490

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@490

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@490

comark-motion

pnpm add https://pkg.pr.new/comark-motion@490

comark-outline

pnpm add https://pkg.pr.new/comark-outline@490

comark-properties

pnpm add https://pkg.pr.new/comark-properties@490

comark-qr

pnpm add https://pkg.pr.new/comark-qr@490

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@490

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@490

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@490

comark-sources

pnpm add https://pkg.pr.new/comark-sources@490

comark-steps

pnpm add https://pkg.pr.new/comark-steps@490

comark-table

pnpm add https://pkg.pr.new/comark-table@490

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@490

comark-tests

pnpm add https://pkg.pr.new/comark-tests@490

comark-time

pnpm add https://pkg.pr.new/comark-time@490

comark-ui

pnpm add https://pkg.pr.new/comark-ui@490

comark-xref

pnpm add https://pkg.pr.new/comark-xref@490

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@490

commit: 42d6ed2

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Approach: Sound — putting the closing-frame check in the motion suite exercises the actual animation, while the zoom-only suite covers keyboard behavior, color inheritance, and cleanup.

Reviewed changes — All five restored regressions. No P0 or P1 findings.

  • Closing geometry: Checks that the animated copy lands within one pixel of the source for both the table and the fixed-line-height block.
  • Zoom behavior: Checks screenshot context color, carousel tab order and Enter handling, tabindex handling for late insertions, and scroll restoration after stop().
  • Verification: All 43 tests in both Chromium zoom suites passed. The five restored tests also passed six repetitions each with four workers.

Pullfrog  | View workflow run | Using gpt-6.2-sol(high) | 𝕏

@vite-hub
vite-hub Bot merged commit dd85e93 into main Nov 25, 2026
7 checks passed
@vite-hub
vite-hub Bot deleted the test/restore-zoom-e2e branch November 25, 2026 10:55
@github-actions github-actions Bot mentioned this pull request Nov 25, 2026
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