You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
683 B

describe("app should", () => {
beforeEach(() => {
cy.visit("/")
})
it("has the correct <h1>", () => {
cy.contains("h1", "Great success!")
})
it("navigates to /about", () => {
cy.get("nav a")
.contains("about")
.click()
cy.url().should("include", "/about")
})
it("navigates to /blog", () => {
cy.get("nav a")
.contains("blog")
.click()
cy.url().should("include", "/blog")
})
it("navigate to /register", () => {
cy.get("nav a")
.contains("Register")
.click()
cy.url().should("include", "/register")
})
})