Why should a Django developer care about E2E tests? Because using Playwright it is easy and rewarding! We’ll see some real use cases and some tips and tricks that I discovered experimenting with this test framework.
End-to-end tests are often overlooked in Django projects: powerful in theory, but too slow or complex to adopt in practice or integrate in CI pipelines. We’ll start with a quick overview of what Playwright is, we’ll see how to integrate it into a Django test suite with minimal friction, using real examples to test common workflows like authentication and forms: some tips and tricks learned from real usage to keep tests fast, readable, and reliable, and to avoid the flakiness that gives E2E testing a bad reputation. We’ll close with a brief look at running Playwright tests in CI, highlighting best practices for stable and efficient pipelines.