diff --git a/cypress/e2e/theme.cy.js b/cypress/e2e/theme.cy.js index 82ac680..4970d8c 100644 --- a/cypress/e2e/theme.cy.js +++ b/cypress/e2e/theme.cy.js @@ -24,22 +24,22 @@ const isLightMode = () => { }; describe("Theme", () => { - it("is dark by default", () => { + it("is light by default", () => { cy.visit("/"); isDarkMode(); }); - it("is light if user has set it in the browser", () => { - visit(false); + it("is dark if user has set it in the browser", () => { + visit(true); isLightMode(); }); it("can toggle", () => { - visit(true); - isDarkMode(); - cy.get("[data-test=toggle-theme]").click(); + cy.visit("/"); isLightMode(); cy.get("[data-test=toggle-theme]").click(); isDarkMode(); + cy.get("[data-test=toggle-theme]").click(); + isLightMode(); }); });