Last active
August 3, 2022 08:40
Cypress End to End Testing: Case Example 1
This file contains 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("lambdatest@yopmail.com"); | |
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