From a09a767fd19ff49d0701ac797fd31cedb02be35f Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Fri, 21 Feb 2020 18:58:16 +0100 Subject: [PATCH] Visit root path before reloading --- cypress/integration/common/steps.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/integration/common/steps.js b/cypress/integration/common/steps.js index f3e1b7988..c02829b25 100644 --- a/cypress/integration/common/steps.js +++ b/cypress/integration/common/steps.js @@ -167,7 +167,8 @@ When("I fill in my email and password combination and click submit", () => { }); When(/(?:when )?I refresh the page/, () => { - cy.reload(); + cy.visit('/') + .reload(); }); When("I log out through the menu in the top right corner", () => {