Comment

Comment by cebert

We use Playwright and the Page Object Model approach to test our applications because that approach is more maintainable for larger applications. Automated E2E testing is something all developers are expected to do, not just an "SDET" engineer or QA engineer role. While we take the POM approach, I frequently use Playwright's recorder to help me get selectors and interactions with the DOM needed to verify a captured feature. Next, I take the code generated and incorporate it into object models. Adding an automation attribute to all of your elements that are both unique and stable helps go a long way to make E2E tests enjoyable.
parent cebert 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton