Created
December 12, 2019 14:05
-
-
Save aleccool213/fa635726fab6b4d053d405bdd2cb0b07 to your computer and use it in GitHub Desktop.
First Cypress Test on the Personal Blog
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("The Home Page", () => { | |
it("successfully loads", () => { | |
cy.visit("/"); | |
}); | |
it("can visit a blog post link from the home page", () => { | |
cy.visit("/"); | |
cy.get("#post-page-link").click(); | |
// header appears | |
cy.get("h1"); | |
// content appears | |
cy.get("p"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment