diff --git a/test/e2e/specs/common/index.ts b/test/e2e/specs/common/index.ts index c1df0e3..0805e46 100644 --- a/test/e2e/specs/common/index.ts +++ b/test/e2e/specs/common/index.ts @@ -4,6 +4,7 @@ Given('I open the home page', () => { cy.visit(Cypress.env('BASE_URL'), { onBeforeLoad(win) { cy.stub(win, 'matchMedia') + .callThrough() .withArgs('(prefers-color-scheme: dark)') .returns({ matches: false,