Last active
August 3, 2022 08:40
-
-
Save SarahElson/a493c2c84d19c93d35b7ee31491368c6 to your computer and use it in GitHub Desktop.
Cypress End to End Testing: Case Example 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="cypress" /> | |
it("Open the Url", () => { | |
cy.visit( | |
"https://ecommerce-playground.lambdatest.io/index.php?route=account/login" | |
); | |
}); | |
it("Login into the application", () => { | |
cy.get('[id="input-email"]').type("[email protected]"); | |
cy.get('[id="input-password"]').type("lambdatest"); | |
cy.get('[type="submit"]').eq(0).click(); | |
}); | |
it("Search the Product", () => { | |
cy.get('[name="search"]').eq(0).type("VAIO"); | |
cy.get('[type="submit"]').eq(0).click(); | |
}); | |
it("Verify Product after search ", () => { | |
cy.contains("Sony VAIO"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment