Skip to content

Instantly share code, notes, and snippets.

@aleccool213
Created December 12, 2019 14:05
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 aleccool213/fa635726fab6b4d053d405bdd2cb0b07 to your computer and use it in GitHub Desktop.
Save aleccool213/fa635726fab6b4d053d405bdd2cb0b07 to your computer and use it in GitHub Desktop.
First Cypress Test on the Personal Blog
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