Last active
May 22, 2018 23:40
-
-
Save sslotsky/732e644b86c9e751c5da51e21128af55 to your computer and use it in GitHub Desktop.
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
describe("Greeting", () => { | |
describe("When logged in", () => { | |
before(() => { | |
cy.login(process.env.TEST_SINGLE_EMAIL, process.env.TEST_SINGLE_PASSWORD); | |
}); | |
it("displays the greeting", () => { | |
cy.visit("/"); | |
cy | |
.get('h1[data-cy="user"]') | |
.should("have.text", `Hello ${process.env.TEST_SINGLE_EMAIL}`); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment