Page Object Model
Selectors and actions live in page objects. The specs only say what to check, never how to find a button.
Nine features, 34 tests, Page Object Model, and a real fight with Cloudflare.
A Playwright and TypeScript test framework for the nopCommerce demo store. It covers nine features in 34 tests, checks the happy paths along with the ways things should break, and is built to hold up against a live site that Cloudflare actively guards.
It's split into two layers on purpose: the framework (page objects, fixtures, the data layer) is reusable scaffolding with no tests in it, and the suite is the feature specs plus three end-to-end checkout journeys.
| Features | 9 (8 core + an end-to-end checkout) |
| Tests | 34 (Pass / Fail / Edge, several data-driven) |
| Page objects | 9 (BasePage + one per feature) |
| Reporting | Playwright HTML + Pulse (with trends) |
| On failure | screenshot, trace, and video |
| Proof | 34/34 even with --retries=0 |
Guides
Assignment deliverables