Skip to content

test(shop): add a Playwright admin-navigation smoke of the pilotage dashboard - #50

Merged
Drago37 merged 1 commit into
developfrom
test/pilotage-browser-smoke
Sep 21, 2026
Merged

Drago37 merged 1 commit into
developfrom
test/pilotage-browser-smoke

Conversation

@Drago37

@Drago37 Drago37 commented Sep 21, 2026

Copy link
Copy Markdown
Owner

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):

  • logs into wp-admin, opens every pilotage view;
  • asserts 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 a theme devDependency. 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); run artifacts are gitignored.

Validated locally: 11 browser checks green.

Relates to #3

…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).
@Drago37 Drago37 added the enhancement New feature or request label Sep 21, 2026
@Drago37 Drago37 self-assigned this Sep 21, 2026
@Drago37
Drago37 merged commit 70f5e77 into develop Sep 21, 2026
6 checks passed
@Drago37
Drago37 deleted the test/pilotage-browser-smoke branch September 21, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant