Quality
How this site is tested and shipped. It's the same kind of pipeline I set up for clients: every change is checked, built, tested on desktop and phone, and scanned before it goes live, then watched once it's out.
The pipeline
- 1
Verify
Every push
ESLint and the TypeScript compiler run side by side. A lint error or type error stops the pipeline before anything is built.
- lint
- typecheck
- 2
Build
Every push
A production build of the site. The exact build that passes here is the one the tests run against.
- build
- 3
Test
Every push
The full Playwright suite runs against the production build, once as a desktop browser and once as a phone. Results show up on the merge request.
- e2e
- 4
Scan
Every push
GitLab's security scanners check the code, the dependencies and the commit history for vulnerabilities and leaked secrets.
- sast
- secret_detection
- dependency_scanning
- 5
Watch
After each release & nightly
Once a release is live, the smoke tests run again against the real site, and again every night to catch anything that breaks without a code change.
- smoke:production
The tests
End-to-end tests written with Playwright, each run on desktop Chrome and a Pixel 7.
Every page loads cleanly
@smokee2e/smoke.spec.ts
- Home, CV, services, portfolio, quality and contact pages return 200
- Each page has its main heading
- No errors in the browser console
- Nothing scrolls sideways on desktop or phone
CV
e2e/cv.spec.ts
- The CV button next to the name opens the CV
- The About me button opens the CV
- Experience is listed with the latest role first
- All four references are shown
Services
e2e/services.spec.ts
- All six services are listed, each with a closed price tag
- Clicking a price tag opens the plans that fit the service, and clicking again closes it
- The full price list sits under All prices
- One currency picker converts every price on the page
- Book a chat goes to the booking calendar
Portfolio
e2e/portfolio.spec.ts
- The dashboard shows who is on call and on test duty
- The dashboard lists incidents
- This page is linked under the dashboard and not in the header
Contact
e2e/contact.spec.ts
- The form won't send with required fields empty
- Invalid email addresses are rejected
- The booking panel is in place
Quality gates
- Nothing merges to main unless the pipeline is green.
- Every test runs on a desktop browser and a phone-sized screen.
- Third-party services (booking, exchange rates) are blocked in tests, so a failure always means our code.
- A test that only passes on retry is flagged as flaky and fixed, not ignored.
- Failed runs keep a trace, screenshot and video for 14 days so nobody has to guess what happened.
Run it yourself
- $ npm test
- Lint and typecheck
- $ npm run test:e2e
- Full Playwright suite (starts the dev server if needed)
- $ npm run test:smoke
- Only the @smoke tests
- $ npx playwright show-report
- Open the last HTML report