Created
November 26, 2020 09:23
-
-
Save qunabu/897e143bcfae53eb94a471461c4d5836 to your computer and use it in GitHub Desktop.
Test e2e
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
// TEST. framework cypress | |
describe("My First Test", () => { | |
it("Gets, types and asserts", () => { | |
cy.visit("https://example.cypress.io"); | |
cy.contains("type").click(); | |
// Should be on a new URL which includes '/commands/actions' | |
cy.url().should("include", "/commands/actions"); | |
// Get an input, type into it and verify that the value has been updated | |
cy.get(".action-email") | |
.type("[email protected]") | |
.should("have.value", "[email protected]"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment