From 4fdcbc78aa7ee51c81ccc5a12e0acc0a33c85261 Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Thu, 16 Jan 2020 19:30:25 +0100 Subject: [PATCH] fix: cypress breaks locally in login step (#2776) - We do not need to simulate a user closing the toaster, as this is not that common of a user interaction, fails intermittently locally, and costs unnecessary build time --- cypress/support/commands.js | 1 - 1 file changed, 1 deletion(-) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index f52b38faf..13d33964a 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -60,7 +60,6 @@ Cypress.Commands.add("login", ({ email, password }) => { .as("submitButton") .click(); cy.get(".iziToast-message").should("contain", "You are logged in!"); - cy.get(".iziToast-close").click(); }); Cypress.Commands.add("logout", (email, password) => {