Chapter 10: Tests

End-to-end test

Also called E2E test

A test that drives the whole system the way a user would: a real browser, clicking real buttons, against the real app and its database.

An agent can only claim a screen works until something looks at it. An end-to-end test can be its eyes. It is also the slowest and flakiest kind, so keep a few that matter and not hundreds.

Say it to your agent

“Write one Playwright test for the checkout: sign in, add an item, pay with the test card, and check the confirmation page shows the order number. Wait on what the page shows, and use no fixed sleeps.”

The workshop

Name a word, or describe what you mean in everyday language.