How kainos-academy-2026-eayl/team-b-for-brilliant-test-harness works
This repository is a Playwright test harness, not the website under test. Its workflow is to run browser-based UI checks against a configured frontend and API checks against a separately started backend; discount tests cover creation and expiry-based activation. Reusable page objects, API fixtures, and test data support those checks. The test source files were not sampled, so links from suites to helpers are omitted where the README does not establish them.
Main entry points: UI_Tests UI test suites · API_Tests API login and registration · add-discount.spec.ts Add discount tests · discount-activation.spec.ts Discount activation tests
Components 12
UI checks
- UI test suites
tests/UI_Tests - Login page object
pages/LoginPage.ts - Register page object
pages/RegisterPage.ts
API checks
- API login and registration
tests/API_Tests
Discount checks
- Add discount tests
tests/add-discount.spec.ts - Discount activation tests
tests/discount-activation.spec.ts - Discount helpers
tests/helpers/discounts.ts
Shared harness
- API fixtures
fixture.ts - Test variables
Variables.ts
Other components
- Test runner
- Website under test
- Backend under test
Connections 9
- Test runner → UI test suites: runs
README.md - Test runner → API login and registration: runs
README.md - Test runner → Add discount tests: runs
README.md - Test runner → Discount activation tests: runs
README.md - UI test suites → Website under test: tests against
README.md - API login and registration → Backend under test: tests against
README.md - Add discount tests → Backend under test: creates discounts through
README.md - Discount activation tests → Backend under test: tests expiry via
README.md - API fixtures → Test variables: reads defaults from
fixture.ts