Skip to content

Instantly share code, notes, and snippets.

@qunabu
Created November 26, 2020 09:23
Show Gist options
  • Save qunabu/897e143bcfae53eb94a471461c4d5836 to your computer and use it in GitHub Desktop.
Save qunabu/897e143bcfae53eb94a471461c4d5836 to your computer and use it in GitHub Desktop.
Test e2e
// 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