Playwright Automation Starter

Playwright · TypeScript · Page Object Model · GitHub Actions CI

In this starter suite I automate a set of my own manual test cases (from the two case studies) against Sauce Demo, a public practice shop. Every automated test is named after the manual case it comes from.

What it covers

Manual case (my design)Automated check on the demo app
LGN-001, LGN-004Login page loads; the password is masked
LGN-007, LGN-018Valid login redirects to the product list; pressing Enter submits
LGN-010 to LGN-013, LGN-016Empty and invalid credentials show the right error, and the error clears on a successful retry
TC-UM-013A locked-out (deactivated) user cannot log in
TC-SSO-035Protected pages opened by direct URL without logging in redirect to the login page
TC-SSO-025, TC-SSO-037Logout works, and the browser back button does not reopen protected pages
JOL-054, TC-ROL-031Sorting orders the list correctly; the cart count updates
TC-CON-013, TC-CON-018Checkout form required-field validation, then a successful order

How it’s built

  • Page objects for the login, product list and checkout pages.
  • Data-driven tests for the validation cases.
  • Two projects: desktop Chrome for the full suite, and a Pixel 7 phone viewport for the tests tagged @mobile.
  • GitHub Actions runs type checks and the suite on every push, and uploads the HTML report.