This is an example of how we like to set up a playwright project at Mentimeter.
Some notable features we like to use:
- Usage
global-setup.tsandglobal-teardown.ts - Page Object Models in
pagesfor storing locators across tests - A
libfolder with common functionality for calling backend APIs - The default
testfunction extended with project-specific functionality intest.ts - Pretty imports using typescript
paths