Repository navigation
fix(test): open the Suggestion chip's fold and expect no local() faces in the font-swap script - #3105
Conversation
…s in the font-swap script
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 3 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Merge note: test scripts only, no product change. ui-regression follows the Suggestion chip into the composer's More fold (#3096); font-swap now asserts the built CSS has no local() faces (none since #2272). Both fail on main and pass here in the CI runner image; |
What it changes
Two browser scripts were red on
mainin the CI runner image (herdr-ci-runner:local). Both now follow the app as it is today, and each still asserts what it asserted before.scripts/ui-regression.ts(CI's required "Browser regression (ui-regression)" job): feat(settings): fold each page's rarely changed rows under More settings and Experimental #3096 moved the Suggestion chip switch into the Composer's "More settings" fold, so?settings=chat§ion=composerno longer showed it, andsetCheckedtimed out after 30 s waiting for the switch. The script now openssection=composer-more, the link feat(settings): fold each page's rarely changed rows under More settings and Experimental #3096 added, which opens that fold. The steps and assertions after it are unchanged.scripts/font-swap-demo-regression.ts(manual script; it is not in CI's browser list): it strippedlocal()sources from the built stylesheet and asserted that it had found at least one. feat(terminal): draw the terminal in the bundled JetBrains Mono on every device, so Mac app, Safari and Chrome match #2272 removed the lastlocal()face (JetBrains Mono is always the bundled file), so this assertion has failed since feat(terminal): draw the terminal in the bundled JetBrains Mono on every device, so Mac app, Safari and Chrome match #2272. The point of that step, that a font request the script holds is the only way to a face, now holds by construction, so the script asserts that no built stylesheet names alocal()face, instead of stripping them. If one comes back, the script fails and says so.No product code changes.
Validation
herdr-ci-runner:local(CI env, a fresh copy of the branch,bun install --frozen-lockfile,bun run build):origin/main3904098:font-swap-demo-regressionFAIL ("the built stylesheet names an installed face..."),ui-regressionFAIL (waiting for getByRole('switch', { name: 'Suggestion chip' })),interface-font-demo-regressionPASS.font-swap-demo-regressionPASS (all 5 cases),ui-regressionexit 0.bun run check fast: green. A first run had onescripts/plugin.test.tsfailure (ENOENT on the stand-in's output while the PC was under heavy load). That test passes alone, and a second full run had 12525 pass and 0 fail.