Skip to content

fix(dox): select the Chromium-only browser tests by file name, not skipIf - #597

Open
craig-o-curtis wants to merge 2 commits into
mainfrom
hotfix-chromium-only-browser-tests
Open

craig-o-curtis wants to merge 2 commits into
mainfrom
hotfix-chromium-only-browser-tests

Conversation

@craig-o-curtis

Copy link
Copy Markdown
Contributor

What changes

Story consistency fails on main since #595. That change wrapped two Chromium-only browser tests in describe.skipIf, and no skipped test may merge.

  • The two files are renamed to *.chromium.browser.test.ts and hold no skip.
  • vitest.browser.config.ts leaves those files out of a run whose DOX_BROWSERS has no Chromium, such as the weekly WebKit run.
  • The two notes in context/dox/built/ match.

#596 waits for this: its Story consistency job fails on the same two lines.

Checks

  • test-markers check passes; it finds two problems on main.
  • A Chromium run selects both files; a WebKit run selects neither. The other 13 run in both.
  • The Dox unit tests for the launcher, test isolation, CI legs and affected checks pass (119).
  • sound-peaks.chromium.browser.test.ts passes in Chromium (8). zone-map-forced-colors needs a built site, so CI runs it.
  • oxfmt --check and changeset:status pass. The changeset is empty: no release.
  • pnpm run validate was not run locally.

…ipIf

Two browser tests used describe.skipIf, which the disabled-test check forbids,
so `Story consistency` failed on main. Name them *.chromium.browser.test.ts.
The browser test config leaves them out of a run without Chromium.
@craig-o-curtis craig-o-curtis added bug Something isn't working documentation Improvements or additions to documentation gmt monorepo labels Nov 30, 2026
@craig-o-curtis
craig-o-curtis enabled auto-merge (squash) November 30, 2026 18:22

@baldurpan baldurpan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I read this at 1e0b5cb and listed the files each engine selects with vitest list --config vitest.browser.config.ts --filesOnly:

DOX_BROWSERS Files *.chromium.browser.test.ts
unset 15 both
chromium,webkit 15 both
webkit 13 none
firefox 13 none

The 13 are every other browser test, so the new exclude composes with BROWSER_TEST_GLOB and nothing else drops out. The renamed files still match the .browser.test.ts suffix that dist-tests.mjs, isolation.ts and the default config key on. No path-based caller in ci.yml or affected.mjs names the old files. testsRunIn is still used by the config, so it is not dead. I ran the file listing only, not the browser tests.

One nit is below.

@baldurpan baldurpan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The one nit is fixed in 66909c8, and I read the whole change: each engine selects the right browser tests, and both docs now say the WebKit leg skips the two Chromium-only files. CI was still running 5 checks when I approved.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation gmt monorepo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants