In plain words
An end-to-end test drives a real browser through a complete task, such as signing up and choosing a plan, and checks what the user would see at each step.
Where you see it
Playwright opens Harbor's sign-up page, fills in an email, picks the Pro plan, pays with Stripe's test card 4242 4242 4242 4242 and checks that the dashboard says Pro. It can run the same steps in Chromium, Firefox and WebKit before each release.
What goes wrong
- Testing everything end to end
These tests are slow and can break for many reasons. Keep a handful for the paths that make money or lock people out, such as sign-up, login, upgrade and cancel, and test the details lower down.
- Finding elements by CSS class
A redesign renames a class and twenty tests fail while the app works fine. Find elements by role, label or visible text, or by a data-testid you add on purpose.
await page.click(".sc-1x7d .btn-primary-2"); - Running against live data
A sign-up test pointed at the live site creates real accounts and real Stripe customers. Run it against a preview or staging environment with test keys, and give test accounts an address you can find and clear later.
What to tell your agent
Quick check
Sign in to earn +10 XP for itHarbor has 400 unit tests and no end-to-end tests. Where should the first Playwright test go?