Playwright tests for forms, menus and carts
Automated testing does not need to start with a large suite. Forms, menus, search and carts are often enough for the first useful step.
What to test first
Playwright is a good fit for testing real browser user journeys. In a Drupal project, the first test suite should cover the most important actions.
Start with:
- the contact form opens and validates fields;
- the menu works on mobile and desktop;
- search or filters return results;
- the cart adds and removes a product;
- a critical content page loads without JavaScript errors.
Why a small test is better than no test
A small, clear test suite creates value quickly. It does not cover everything, but it catches regressions that people forget to check manually after every update.
WebPro provides automated testing for Drupal projects. We usually connect Playwright tests with Drupal maintenance and controlled releases so updates do not move to production on hope alone.
Kaido Toomingas
WebPro Company OÜ
Need Drupal help?
If the article describes your situation, you do not have to read everything first. A real person will help you choose the next step.