Skip to content

bharatahuja04/cychallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cypress exercise

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.

Execution Steps:

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:

  1. If npx cypress run is used, upon an error- screenshot will get saved automatically under screenshots folder (auto-generated)
  2. 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:

  1. lastName input is disabled for error_user
  2. Finish button is disabled for error_user

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published