Skip to content

Instantly share code, notes, and snippets.

@sslotsky
Last active May 22, 2018 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sslotsky/732e644b86c9e751c5da51e21128af55 to your computer and use it in GitHub Desktop.
Save sslotsky/732e644b86c9e751c5da51e21128af55 to your computer and use it in GitHub Desktop.
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