Don't Automate Everything: Lessons from Playwright

Jeff ThoensenJeff Thoensen
1 min read

I went heavy on Playwright early on. Wrote tests for every button and every form I could. It looked solid until a small UI change broke a dozen of them because I’d used getByText in bad spots. The suite became useless for a while, and we were shipping code without it (so what was the point of all that work?).

Now I focus on automating the things I don’t want to do manually: setup flows, core user paths, data checks. If I can’t explain why a test exists, I don’t write it. I also check UI mocks early so I’m not surprised when labels change or elements move. It saves time and keeps the suite stable.

Five solid tests are better than fifty flaky ones. Flaky tests destroy trust in QA fast. I treat tests like real code. I review them, refactor them, and make small commits. If you skip that, the suite turns into a mess quickly.

I use Playwright every day, but automation’s not about hitting numbers. It’s about saving time and keeping focus on users instead of fixing scripts constantly.


Connect with me:
https://www.jeffthoensen.com
https://dev.to/jeffthoensen
https://jeff-thoensen.medium.com
https://jeffthoensen.substack.com

0
Subscribe to my newsletter

Read articles from Jeff Thoensen directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Jeff Thoensen
Jeff Thoensen

I’m a QA engineer with a background in customer support, which gave me a strong sense for how bugs impact real users. I spend most of my time doing exploratory testing, working closely with developers, and building out automation with Playwright. I care about catching what actually matters, not just passing checklists.