Problem: “you could have AI write/maintain your traditional E2E tests, but i...


Problem: “you could have AI write/maintain your traditional E2E tests, but i promise they'll quickly miss CSS selectors”

Solution: Don’t use CSS selectors in tests. Instead, use Playwright’s accessible locators like getByRole, getByText, etc. Testing library proved this works well years ago.

Playwright tests are precise and deterministic. English prompts are neither.

View original on X