mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-26 13:21:42 +03:00
14 lines
346 B
TypeScript
14 lines
346 B
TypeScript
context("cookies", () => {
|
|
it("shows no preference message when no cookie", () => {
|
|
cy.clearCookies();
|
|
cy.visit("/cookie-test");
|
|
cy.contains("No dark mode preference set");
|
|
});
|
|
|
|
it("saves session cookie", () => {
|
|
cy.setCookie("dark-mode", "true");
|
|
cy.visit("/cookie-test");
|
|
cy.contains("Dark mode: true");
|
|
});
|
|
});
|