Skip to content

test(channel-completion): serve the fixture as a build so cold loads fit - #2873

Closed
kchung wants to merge 1 commit into
mainfrom
chung/test-channel-completion-build
Closed

kchung wants to merge 1 commit into
mainfrom
chung/test-channel-completion-build

Conversation

@kchung

@kchung kchung commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Context

channel-completion.spec.mjs can fail with page.goto: Timeout 15000ms exceeded. Each test starts its own Vite dev server, and a busy CI shard cannot load about 1,600 modules in time (example failure). #2776 fixed the same problem for mentions.spec.mjs.

Description

Build tests/fixtures/mentions.html once and serve the bundle to both tests, as mentions.spec.mjs does.

Changes

  • beforeAll builds the page into a temp directory and serves it with preview. afterAll closes the server and removes the directory.
  • The dev server and its try/finally blocks are gone. No assertions or timeouts change.
  • The build skips CSS optimization. Optimized CSS rounds the popup line height and moves the popup 0.03px off the 4px gap that the first test asserts in WebKit.

Testing

Chromium and WebKit pass the full file, and each passes 10 of 10 with --repeat-each=5. No browser cases are added or removed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Kevin Chung <chung@squareup.com>
@kchung kchung closed this Nov 6, 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