Repository navigation
Replies: 2 comments 2 replies
|
Thanks for opening this discussion. In an earlier version of #1508, I ran two Chromium tests that rendered Each test clicked a separate button outside the card to keep the pointer off the card. It checked that the Actions button started at I temporarily restored the original hover-only styles to check that the tests could catch the bug. Tab still focused the button in both cases. Its computed opacity stayed at
|
|
On question 4, your draft rule holds, with one addition: when the question is whether it looks right, a screenshot beats a stack of computed-style asserts, since two themes times RTL times two widths gets long fast. I built UI Verify for that: it plugs into Vitest browser mode with the Playwright provider, as #1508 has, and diffs each test's screenshot against main. Free for open source at 50,000 snapshots a month (10,000 on the regular free plan). Happy to help wire it onto #1508. Would RTL come first? |
Uh oh!
There was an error while loading. Please reload this page.
The frontend test suite runs in jsdom today (
npm run test,npm run test:coveragein CI). That covers behaviour, accessible names and keyboard handling well, but it cannot see real CSS: an element withopacity: 0still passestoBeVisible(), and focus-visibility, layout and theme regressions go unnoticed.#1508 proposed a way to close that gap while fixing the notebook card action menu: Vitest browser mode with Playwright, a separate
vitest.browser.config.ts,*.browser.test.tsxfiles that load the app'sglobals.css, atest:browserscript, and two CI steps (npx playwright install --with-deps chromium, thennpm run test:browser). We asked for that part to be split out of the bug fix so it can be decided on its own. This is the place for that.What we'd gain
What it costs
playwrightand@vitest/browser-playwrightas dev dependencies to keep up to dateQuestions
frontend/changes, or nightly?Opinions and experience from other projects are welcome, especially from people who maintain a setup like this.
All reactions