Project | Web & API
Cypress + TypeScript Framework
A React + Node task app kept in the repository, tested three ways: cy.request with zod contracts, page objects with cy.intercept and cy.clock for errors, slow answers and dates, and React components mounted alone.
The repository has 81 unique Cypress test cases (31 API, 33 UI and 17 component) plus 15 Node unit tests. The static report shows 64 passing API and UI executions; component and Node results are separate.
Evidence checked 19 Nov 2026 | CI run #67 on main
On this page
Problem and purpose
Shows what Cypress does best: tests that control the browser's network, clock and login, and component tests next to end-to-end tests. The app under test, TaskBoard, is part of the repository, so no public demo site can break a run, every test can reset the data, and the React components can be mounted on their own.
Architecture
cypress/e2e/api, e2e/ui, component what is checked
│
cypress/pages LoginPage, BoardPage (data-cy selectors, no assertions)
cypress/support commands: resetData, loginAs (cy.session), createTask
api.ts (typed cy.request client), schemas.ts (zod)
│
TaskBoard (app/) React UI + Node API; POST /api/test/reset before every testTechnology and tools
| Area | Tools |
|---|---|
| Test framework | Cypress 16.2 (e2e and component testing) |
| Language | TypeScript 6.0 |
| Contracts | zod 4 strict schemas |
| App under test | React 19 + Vite 8 web app, Node.js 24 API with no dependencies (and its own node:test tests) |
| Report | cypress-mochawesome-reporter: one HTML file per run with failure screenshots |
| Code quality and CI | ESLint (type-aware + Cypress rules), Prettier, GitHub Actions with cypress-io/github-action |
Engineering decisions and approach
- The app under test lives in the repository: a reset hook and seeded users make every test start from the same data
- Login through cy.session with a validate step; the login form itself is tested once
- Setup data is created through the API, the screen under test through page objects
- zod strictObject contracts: a leaked field fails with its name (checked by leaking a server field on purpose)
- cy.intercept for states the real server rarely produces, the real backend for user flows
- No fixed waits and no chaining after actions: both are lint errors
Test scope and execution approach
Project-specific checks and execution details documented in the repository:
- 31 API tests: login and logout, token checks, tasks CRUD, filters, validation with boundary values, another user's task answers 404
- 33 UI tests: login, adding, completing, renaming and deleting tasks (confirm accepted and cancelled), filters, search
- Network: slow answers, server errors with Retry, network failure, fixture stub, expired login, request body and header checks
- Time: the Overdue badge before, on and after the due date, a 300 ms search debounce and a 3 s toast, with cy.clock
- 17 component tests: the form, the task row, the filter bar and the toast mounted alone, callbacks recorded with cy.stub()
- Framework design notes and 86 interview questions with answers linked to the code (Markdown + PDF)
Results with dated evidence
Static report image and dated repository test inventory
CI run #67 on main
The repository has 81 unique Cypress test cases (31 API, 33 UI and 17 component) plus 15 Node unit tests. The static report shows 64 passing API and UI executions; component and Node results are separate.
Evidence checked: | Open dated evidence
The report image shows one API and UI run with 64 passing test executions. The repository has 81 Cypress test cases (31 API, 33 UI and 17 component), plus 15 Node unit tests. Component and Node results are separate.
Evidence explorer
Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.
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 #67 on main
Representative failure evidence
The static API and UI report is a passing demo-app run; it is not a production defect count. Other failure examples and component checks are documented in the source repository.
Local setup and execution
npm ci
npm test # build the app, start it, run all API + UI tests
npm run cy:component # component tests
npm run cy:open # interactive runner
npm run cy:demo # report demo: 1 pass, 2 fail, 1 skip on purposeWorkflow and reports
Known limitations
- Specs run one after another against one server; parallel specs would need a server or data set per worker
- Visual and accessibility checks are not included yet; WebKit is not covered
- The evidence is limited to the public repository and linked run; it does not establish customer production impact.