Victoria BanjoBack to Projects

PROJECT 03 / AUTOMATION FRAMEWORK

SauceDemoAutomation Framework

A maintainable end-to-end regression framework for e-commerce journeys, built with Playwright, TypeScript and the Page Object Model.

End-to-End UI Automation FrameworkPLAYWRIGHT / TYPESCRIPT / POM
Automated scenarios
08
Cross-browser executions
24
Browser engines
03

01 / OVERVIEW

A framework built to scale.

Project overview

A Playwright and TypeScript framework for regression testing SauceDemo's core e-commerce journeys. Built around the Page Object Model, it keeps test intent separate from page interactions so the suite stays readable as coverage grows.

The suite automates login, shopping cart and checkout, with GitHub Actions running the suite in CI.

TECHNOLOGIES

  • Playwright
  • TypeScript
  • Page Object Model
  • GitHub Actions
  • Git

02 / ARCHITECTURE

Organised by responsibility.

Framework architecture

Specifications describe journeys, page objects own interactions, and a shared helper handles authentication. Each layer changes independently.

01

GitHub Actions workflow

Runs the suite in continuous integration.

02

Playwright configuration

Defines browser projects and shared execution settings.

03

Test specifications

Express each user journey and its assertions.

04

Page objects

Encapsulate locators and page interactions.

05

Authentication helper

Provides a single, reusable login step.

03 / COVERAGE

Eight scenarios,
three engines.

Test coverage

Every scenario runs in Chromium, Firefox and WebKit. In the documented run, all 24 executions passed in 11 seconds.

8SCENARIOS
×
3BROWSER ENGINES
=
24EXECUTIONS
Testing areas by browser engine
Testing areaChromiumFirefoxWebKit
AuthenticationCoveredCoveredCovered
Shopping cartCoveredCoveredCovered
CheckoutCoveredCoveredCovered

04 / CI & REPORTING

Fast feedback when tests fail.

Continuous integration and reporting

GitHub Actions runs the full suite automatically. Failures retain the artefacts needed to diagnose them.

01

HTML report

Results grouped by browser for quick review after each run.

02

Failure screenshots

Visual state captured at the point a test fails.

03

Failure traces

Step-by-step execution history for diagnosing failures.

05 / DESIGN DECISIONS

Why it's built this way

Design decisions

01

Separate intent from interaction

Specifications describe what a user does; page objects own how. A locator change is made once, not in every test.

02

Centralise authentication

loginAsStandardUser replaces repeated login steps across specifications, keeping setup consistent and easy to change.

03

One suite, three engines

The same eight scenarios run in Chromium, Firefox and WebKit, catching engine-specific behaviour without duplicating tests.

06 / EVIDENCE

From the repository

Project evidence