This is your starting repository for the workshop! Here is the website you will be testing https://www.gov.uk/calculate-your-holiday-entitlement
Homebrew - https://brew.sh/
Yarn - brew install yarn
Node - brew install node
Run these commands first:
yarn install
yarn playwright install
yarn test will run your tests in a Chromium browser as specified in the package.json script
yarn playwright test will run your tests in all browsers
You can create new scripts in the package.json file.
- Familiarise yourself with the website you will be testing https://www.gov.uk/calculate-your-holiday-entitlement
- Run the example test in the example_test.spec.ts file by running
yarn testin your terminal - Draw a flow diagram of the user journey followed in this example test
- Choose a different user journey through the website and add it to your flow diagram
- Open the your_test.spec.ts file and add your user journey steps as //comments
- Show us your flow diagram and test step comments BEFORE YOU START CODING
- Create page objects and content files for any new pages you interact with
- Add your test steps to the your_test.spec.ts file to cover your new user journey (run
yarn my_testto run your test individually)