Skip to content

Instantly share code, notes, and snippets.

@sslotsky sslotsky/greeting-spec.js
Last active May 22, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.