GatherPress allows to run automated and manual end-to-end tests, while sharing the same, wp-env
based, setup.
Check the results of the e2e-tests action workflow at https://github.com/GatherPress/gatherpress/actions/workflows/e2e-tests.yml
.
- Have
node
installed - Have
docker
running - Open the plugin folder in a terminal
- Choose one of the following options
-
Run Playwright normally
npm run test:e2e
-
Run Playwright visually (and change what's happening)
npm run test:e2e:ui
-
Run Playwright in debugging mode (and record what's happening)
npm run test:e2e:debug
-
Run Tests independently AND visually using the Playwright VSCode extension
-