Example of simple E2E test with Page Object pattern written in JS using Protractor and Jasmine frameworks.
- Protractor runs in NodeJS, so you need to have it installed on your system as well.
- Chrome browser (test will run in Chrome by default)
In terminal, run following command:
npm install
This will:
- install test packages
- download drivers for browsers
In terminal, run following command:
npm run test
To run in headless mode (without GUI), run following command:
npm run test-ci
- Examples with and without page object pattern
- Running e2e on CI using Github Workflow
- Test report generation