Skip to content

Commit

Permalink
chore: removed checks for warn messages in the console
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Mar 5, 2024
1 parent c96273b commit 51afec5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cypress/e2e/main.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down

0 comments on commit 51afec5

Please sign in to comment.