Skip to content
This repository was archived by the owner on May 9, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions cypress/integration/mobile_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("Navigation", () => {

it("Hamburger should not be visible", () => {
cy.get("#main-navigation").should("be.visible")
cy.get("#hamburger").should("not.be.visible")
cy.get("[data-cy=hamburger]").should("not.be.visible")
})
})

Expand All @@ -26,11 +26,8 @@ describe("Navigation", () => {
})

it("Mobile menu is visible after we click on the hamburger", () => {
cy.findByRole("button", { name: /navigation/i }).click()
cy.findByRole("link", { name: /Forside/i }).should("exist")

// cy.get("[data-cy=hamburger]").click()
// cy.contains("Kontakt").should("be.visible")
cy.get("[data-cy=hamburger]").click()
cy.contains("Kontakt").should("be.visible")
})
})
})
1 change: 0 additions & 1 deletion cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

// Import commands.js using ES2015 syntax:
import "./commands"
import "gatsby-cypress/commands"

// Alternatively you can use CommonJS syntax:
// require('./commands')
Loading