mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-10 12:44:47 -05:00
16 lines
402 B
TypeScript
16 lines
402 B
TypeScript
/// <reference types="cypress" />
|
|
|
|
import { theme } from "theme";
|
|
|
|
describe("Layout", () => {
|
|
beforeEach(() => {
|
|
cy.visit("/");
|
|
});
|
|
|
|
it("changes color mode with correct bg color", () => {
|
|
cy.get("body").should("have.backgroundColor", theme.light.bgColor);
|
|
cy.get("[data-cy=color-mode-toggle]").click();
|
|
cy.get("body").should("have.backgroundColor", theme.dark.bgColor);
|
|
});
|
|
});
|