NOTE: Hard wait has been used at few places on purpose so that steps can be seen at time of execution (as else it is too fast for execution). It can be removed after the review.
Rename the .example.env file to .env file.
To run the complete suite in headless mode, use the command:
npx cypress run
To run the individual test in headless mode, use the command:
npx cypress run --spec cypress/e2e/loginPage.cy.js (spec filename)
To execute in GUI, run the command
npx cypress open
and select the browser, and click on spec filename to run the specific test.
Screenshots:
- If
npx cypress run
is used, upon an error- screenshot will get saved automatically under screenshots folder (auto-generated) - For manual step- add .cy.screenshot() to test.
For Scenario: Bonus test case 5- clicking on social icons opens page in new tab. Cypress currently doesn't support multiple tabs- https://docs.cypress.io/guides/references/trade-offs#Multiple-tabs
Bugs:
- lastName input is disabled for error_user
- Finish button is disabled for error_user