Problem
The public demo shop is shared and mutable: other users changed published account and catalogue data, and suite-created orders consumed product stock.
Featured project | Web & API
Page objects with a header component, typed API clients with zod contracts, login through the API, network mocking; CI runs lint and type checks first, then four parallel jobs.
47 unique tests; 95 test executions per full run: 23 API tests once, plus 24 UI tests on each of Chromium, Firefox and WebKit.
Evidence checked 19 Nov 2026 | CI run #73 on main (nightly, 19 Nov 2026)
Tests the Practice Software Testing Toolshop, a public demo shop built for testers, through its UI and its REST API, to show modern TypeScript test design: page objects, fixtures, typed API contracts and network control.
tests/api/*.api.spec.ts tests/ui/*.spec.ts
│ │
fixtures/test.ts (page objects, API clients, test user, loggedIn option)
│ │
api/ AuthApi · ProductsApi · CartsApi pages/ + components/HeaderComponent
+ zod schemas + @step decorator
│ │
REST API Browser (3 engines)Select a component to see its purpose, technology, inputs, outputs and implementation path.
Separate browser journeys from direct API checks, with explicit network scenarios for empty and failed responses.
testsSeparate browser journeys from direct API checks, with explicit network scenarios for empty and failed responses.
testsCompose only the requested page objects or API clients; create one customer per worker and inject a fresh API-issued token before a logged-in page loads.
src/fixtures/test.ts · src/dataKeep selectors and user actions inside page objects, share header behavior as a component, and label actions in reports with the step decorator.
src/pages · src/components · src/utils/step.tsKeep authentication, product and cart requests behind service objects, then validate responses with zod schemas that also define TypeScript types.
src/apiRun static checks before independent API, Chromium, Firefox and WebKit jobs, then merge their blob reports into one HTML artifact.
playwright.config.ts · .github/workflows/ci.yml| Area | Tools |
|---|---|
| Test runner | Playwright Test 1.64 |
| Language | TypeScript 6, strict mode |
| API contracts | zod 4 schemas (also the TypeScript types) |
| Static checks | tsc, ESLint (type-aware, eslint-plugin-playwright), Prettier |
| CI | GitHub Actions: checks, then api/chromium/firefox/webkit in parallel, then one merged report |
new: tests declare what they need; API tests never start a browser@step decorator on page-object methods for readable reports and traces; passwords never in step titlesThe public demo shop is shared and mutable: other users changed published account and catalogue data, and suite-created orders consumed product stock.
Give each worker its own API-registered customer, read catalogue counts and in-stock products at runtime, create carts per API test, and use a fresh API login for each authenticated UI test.
47 unique tests; 95 test executions per full run: 23 API tests once, plus 24 UI tests on each of Chromium, Firefox and WebKit.
Evidence checked 2026-11-19 | CI run #73 on main (nightly, 19 Nov 2026)
Scope: These practices reduce assumptions about shared data; they cannot control demo-site availability or eliminate changes by other users. This evidence is from a public demo, not a production deployment.
Project-specific checks and execution details documented in the repository:
Historical repository or workflow evidence
CI run #73 on main (nightly, 19 Nov 2026)
47 unique tests; 95 test executions per full run: 23 API tests once, plus 24 UI tests on each of Chromium, Firefox and WebKit.
Evidence checked: | Open dated evidence
Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.
The interactive architecture map above lists components and their source paths. Open the repository architecture guide.
Static material from the public repository. The linked verification record was checked 2026-11-19; that date is not a screenshot capture date.
Dated workflow record
Evidence checked 2026-11-19. Open CI run #73 on main (nightly, 19 Nov 2026)
npm ci
npx playwright install --with-deps
npm test # API + 3 browsers
npm run test:api # API only
npm run check # typecheck + lint + format (what CI runs first)