Last active
May 6, 2019 12:51
-
-
Save GergKllai1/8ef8ec5868e596a3a604b2f764c086c9 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("User can navigate homepage", () => { | |
before(() => { | |
cy.loggedInAs('user') | |
}); | |
it("Has logo and sessions", () => { | |
[ | |
"Logo", | |
"Log Out", | |
"Crossfit", | |
"Heavy Lifting", | |
"Body Pump", | |
"Basketball", | |
"Yoga", | |
"with Coach Jack", | |
"with Coach John" | |
].forEach(element => { | |
cy.contains(element); | |
}); | |
cy.get("[id^=session]").should("have.length", 5); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment