test: browser tests for every template and the mobile navigation, in CI - #1
Merged
Merged
Conversation
The theme's Vite script now loads in the footer: printed in the head, it came before WordPress's import map, which Firefox and Safari then ignore — the navigation block's module failed to resolve @wordpress/interactivity on every page.
This was referenced Sep 29, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Browser tests
bin/tests/e2e/buzz.spec.ts, run on the framework's Playwright harness (same model as theme-apiary): the active theme is Buzz and a block theme; masthead and colophon on every template; front page, post, page, category archive, search with and without results, 404 (status,error404, content); the design-system pattern registered; on a phone, the navigation opens and closes, and nothing overflows sideways..github/workflows/tests.yml: fresh skeleton^13.32@betaon DDEV, two legs (locked,develop), theme copied as-is (no placeholders), built, activated, thennpx playwright test specs/buzz. Nightly too. First CI this repository has.Fix found by the tests
The Vite script is now loaded in the footer (
->loadInFooter()). Printed in the head, it came before WordPress's import map; Firefox and Safari then ignore the import map, and the navigation block's module failed on every page with@wordpress/interactivity was a bare specifier. Chromium tolerates it, which is why it went unnoticed.Results (local, buzz-demo)
libicu74/libavif16. The CI installs Chromium only, like apiary.The
error404assertion needs Pollora/framework#356:developleg: red until #356 is merged;lockedleg: red until the next framework beta ships it.