Repository navigation
test(shop): add a Playwright admin-navigation smoke of the pilotage dashboard - #50
Merged
Merged
Conversation
…ashboard Fifth and final lot of issue #3 (test-secure the dashboard). Adds a headless-browser smoke — `make browser-local`, and a step in the CI e2e job (Node 22 + `npx playwright install`) — that logs into wp-admin and opens every pilotage view, asserting each renders without a PHP fatal or an uncaught JS error and that the tab nav and the Vente form are present. Deeper JS behaviour (the Vente anti-double-click) stays covered by the jsdom unit tests in tests-js/. Playwright is added as a theme devDependency. The browser test files (tests-browser/) and playwright.config.js are excluded from deployment in all three lists (Makefile DEPLOY_EXCLUDES, deploy-files.sh, verify-prod-integrity.sh), and the run artifacts (test-results/, playwright-report/, tests-browser/.auth/) are gitignored. Validated locally: 11 browser checks green. jsdom and PHP suites unaffected (no PHP changed).
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.
Fifth and final lot of #3 (test-secure the dashboard).
Adds a headless-browser navigation smoke of the pilotage dashboard —
make browser-local, and a step in the CI e2e job (Node 22 +npx playwright install):Deeper JS behaviour (the Vente anti-double-click) stays covered by the jsdom unit tests in
tests-js/.Playwright is a theme devDependency. Browser test files (
tests-browser/) andplaywright.config.jsare excluded from deployment in all three lists (MakefileDEPLOY_EXCLUDES,deploy-files.sh,verify-prod-integrity.sh); run artifacts are gitignored.Validated locally: 11 browser checks green.
Relates to #3