portfolio / projects / ui-playwright
andresqe.duckdns.org · HTTPS · up
Case study · UI ● CI passing

UI automation with Playwright and a strict Page Object Model

End-to-end suite against Restful Booker Platform, a public practice app: full booking flow, admin panel and Excel-parametrized data.

Role
Sole author
Stack
Playwright · pytest · Allure
Browsers
Chromium · Firefox · WebKit

The problem

UI suites tend to become brittle: selectors duplicated everywhere, test data hard-coded, and failures impossible to diagnose without re-running them.

The approach

Each page is an object with its own actions, tests speak only the business language, data lives outside the code, and every failure leaves evidence (screenshot + Allure report).

Key decisions

01 Strict Page Object Model

Selectors live in one place: when the UI changes, you edit one file, not twenty tests.

02 Data outside the code

Test data is parametrized from Excel, so business can add cases without touching Python.

03 BDD on the same objects

Gherkin scenarios reuse the Page Objects: one source of truth for two audiences.

How it runs

git push→ Docker image→ Chromium · Firefox · WebKit→ Allure report→ badge ✓
Feature: Reserva de habitación
  Scenario: Reserva exitosa con datos válidos
    Given que estoy en la página de inicio de Restful Booker Platform
    When busco disponibilidad y selecciono una habitación
    And completo el formulario de reserva con datos de contacto válidos
    Then la reserva queda confirmada

Real scenario from ui-tests/booking-flow/features/booking.feature (written in Spanish).

Test cases in the suite156 scenarios + 9 rows from the Excel data batteries
Browsers per run3GitHub Actions matrix
Pipeline time in CI~9 minAPI + UI on 3 browsers in parallel