We’re in the process of designing a UI automation framework using Playwright with Cucumber (BDD). The main goal is to keep the test suite highly maintainable and quick to update — since our project often faces frequent UI and requirement changes.
We’re looking for the best possible project structure and design patterns that can handle:
Rapid updates to locators and test data
Reusability of step definitions and page objects
Clear separation between feature files, steps, and business logic
AI-assisted or intelligent script updates (in line with current AI-driven testing trends)
Would love to hear from the community:
What folder structure and conventions work best for you?
Any best practices to future-proof Playwright+Cucumber automation in this fast-changing AI era?
Should we still use the Page Object Model, or move to Screenplay or Component-based patterns for more agility?
Looking forward to your insights and examples!