From 51afec539d07e61923df09b1eabb7f3407a28257 Mon Sep 17 00:00:00 2001 From: Fernando Date: Tue, 5 Mar 2024 12:12:04 +0900 Subject: [PATCH] chore: removed checks for warn messages in the console --- cypress/e2e/main.cy.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/cypress/e2e/main.cy.ts b/cypress/e2e/main.cy.ts index 8bdc95a..7e96d3d 100644 --- a/cypress/e2e/main.cy.ts +++ b/cypress/e2e/main.cy.ts @@ -2,11 +2,9 @@ describe("Homepage tests", () => { it("Console is cleared of errors and warnings", () => { cy.visit("/", { onBeforeLoad(win) { - cy.stub(win.console, "warn").as("consoleWarn"); cy.stub(win.console, "error").as("consoleError"); }, }); - cy.get("@consoleWarn").should("not.be.called"); cy.get("@consoleError").should("not.be.called"); cy.get("body").should("exist"); });