node >= v18.5.x
npm >= v7
// Install Visual Studio Code (or any editor)
https://code.visualstudio.com/download
// Install Node.js
https://nodejs.org/en/download
git clone https://github.com/automationExamples/Playwright-Cucumber-Exercise.git
npm install
npx playwright install
Cucumber v1.7.0
Cucumber (Gherkin) Support enhanced for Behat
To run the test
npm run test
After running, to generate the cucumber report (cucumber_report.html)
npm run report
It is not expected that you complete every task, however, please give your best effort
You will be scored based on your ability to complete the following tasks:
- Install and setup this repository on your personal computer
- Complete the automation tasks listed below
- Modify the scenario 'Validate the login page title' from login.feature which runs but fails. Determine the cause of the failure and update the scenario to pass in the test
- Extend the scenario 'Validate login error message' from login.feature which runs and passes but is missing a step. Extend the scenario to validate the error message received.
- Modify and extend the 'Validate successful purchase text' from purchase.feature with steps for each comment listed. Consider writing a new steps.ts file along with an appropriate page.ts
- Extend the testing coverage with anything you believe would be beneficial