A sample plugin that contains env and e2e setup using Gutenberg packages
Add all your e2e test cases in tests/e2e/specs
directory with format *.test.js
. There is an example test file hello.test.js
Clone the repo and then run
npm install
Make sure Docker is running and then run
npm run env:start
You'll have two WordPress setup. One is regular at http://localhost:8888 and other one is for testing http://localhost:8889.
You can use the 8888 site as general purpose. For both admin user pass is admin:password
.
Stop Docker containers
npm run env:stop
Make sure to run env:start first
npm run test:e2e
npm run lint:e2e