This project uses CodeceptJS with Puppeteer to provide end-to-end testing for peregrine-cms.
- ready-to-run peregrine-cms system (on
develop
ordevelop-sling12
branch) - CodeceptJS requirements
- node >= 10.5
- npm/yarn
- vue-cli installed globally
- start your peregrine-cms instance (including themeclean-flex)
- clone the repository
- open a terminal inside the directory
- run
npm install
- run
npm run test
(headless by default)
test:headless
- the default run mode with its full nametest:headful
- run with visible browsertest:ui
- open codecept-ui to start/view/run tests
npx codeceptjs run ./src/test/<test-file> --steps
If you don't want to see the steps and just run it remove the --steps
argument
For more codeceptjs command visit https://codecept.io/commands/