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.
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
Selectors live in one place: when the UI changes, you edit one file, not twenty tests.
Test data is parametrized from Excel, so business can add cases without touching Python.
Gherkin scenarios reuse the Page Objects: one source of truth for two audiences.
How it runs
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).