This is the automation framework generated as a result of the: “up to” 8 hour exercise that Thorem proposes for new engineers.
Node.js
andnpm
must be installed prior- Run
npm i
- From the console:
testcafe chrome tests/*.js
- If using Windows/WSL
testcafe --ports 63305,63305 --live remote tests/*.js
- Have a look at the
FinalResults_Sample.png
file - Have a look at the file that contains the logging
- Commited to 7 urgent tickets, completed 4 See board
- Verify end to end scenario that covers the complete flow from Summary to Payment
- Verify that user sessions don't share items in the cart
- Verify that "Forgot your password" flow works fine
- Verify Whishlist functionality
- Switch to typescript FTW!
- Enhance reporting & logging
- Add methods to abstract common actions such as:
SelectGivenOptionFromDropdown()
- Expand filtering capabilities to run tests by metatags
- Introduce pull request template so that any team member follows that
- Introduce RequestLogger to check for API calls in certain points of the website
- Introduce githooks pre-commit, pre-push for certain tasks
NOTE: This was developed in Windows using WSL 1.0
/ Ubuntu 20.0.4