chore: remove deprecated playwright wrapped
This commit is contained in:
@@ -130,13 +130,17 @@ db-down:
|
|||||||
# point the UI/UX workflow uses; delegates to `front-design`.
|
# point the UI/UX workflow uses; delegates to `front-design`.
|
||||||
frontend-check: front-design
|
frontend-check: front-design
|
||||||
|
|
||||||
# end-to-end Playwright tests
|
# End-to-end Playwright — SvelteKit SPA suite (tests/e2e/spa/).
|
||||||
front-test:
|
# Default target for all e2e work since the frontend migration.
|
||||||
cd tests/e2e && npm test
|
# Depends on `fe-build-e2e`: the runner serves `./static-dist/`, so
|
||||||
|
# the built assets have to be current with `COVERAGE=1 VITE_E2E=1`
|
||||||
# update images snapshots
|
# instrumentation or the SPA-side data-testids won't exist. Server
|
||||||
front-test-update-snapshot:
|
# stdout/stderr is captured at `tests/e2e/server-startup.log`;
|
||||||
cd tests/e2e && npm test -- --update-snapshots=all
|
# `tail -F` it in another terminal to see the cold-start progress
|
||||||
|
# (webServer boot can take minutes on a cold cargo cache and the
|
||||||
|
# `list` reporter prints nothing until the first test runs).
|
||||||
|
front-test: fe-build-e2e
|
||||||
|
cd tests/e2e && npm run test:coverage
|
||||||
|
|
||||||
# Records against a throwaway container stack (its own Postgres + the OxiCloud
|
# Records against a throwaway container stack (its own Postgres + the OxiCloud
|
||||||
# SPA). Each starting point is a file in tests/e2e/scenarios/codegen/ that sets
|
# SPA). Each starting point is a file in tests/e2e/scenarios/codegen/ that sets
|
||||||
@@ -212,10 +216,20 @@ fe-dev:
|
|||||||
fe-build:
|
fe-build:
|
||||||
cd frontend && npm run build
|
cd frontend && npm run build
|
||||||
|
|
||||||
# build the SPA for e2e — keeps the `data-testid` tile hooks the release build
|
# Build the SPA with e2e instrumentation for the Playwright coverage
|
||||||
# strips. Use before running the legacy webServer e2e flow against this binary.
|
# suite. Both env vars are load-bearing:
|
||||||
|
# * VITE_E2E=1 — keeps the `data-testid` tile hooks the release
|
||||||
|
# build strips, so `page.getByTestId(filename)` and
|
||||||
|
# the drop-zone / preferences selectors work.
|
||||||
|
# * COVERAGE=1 — Istanbul-instruments the SPA so per-test
|
||||||
|
# `window.__coverage__` lands in `.nyc_output/`
|
||||||
|
# (see `playwright.coverage.config.ts`). Missing
|
||||||
|
# this makes the runner start but the coverage
|
||||||
|
# report empty.
|
||||||
|
# Called automatically by `front-test`; run manually if you're
|
||||||
|
# invoking Playwright directly.
|
||||||
fe-build-e2e:
|
fe-build-e2e:
|
||||||
cd frontend && VITE_E2E=1 npm run build
|
cd frontend && COVERAGE=1 VITE_E2E=1 npm run build
|
||||||
|
|
||||||
# svelte-check + eslint + stylelint + prettier
|
# svelte-check + eslint + stylelint + prettier
|
||||||
fe-check:
|
fe-check:
|
||||||
|
|||||||
Reference in New Issue
Block a user