From d4c2ff74c7f500c434652b478a1dcd9d232594e9 Mon Sep 17 00:00:00 2001 From: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com> Date: Mon, 7 Jan 2019 21:56:44 +0530 Subject: [PATCH] fix(UI Test): Cypress test case fix (#6734) * fix(UI Test): Fix test cases for login * fix: add missing semicolon --- cypress/integration/login.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/integration/login.js b/cypress/integration/login.js index 91ecf71f78..4da1f39229 100644 --- a/cypress/integration/login.js +++ b/cypress/integration/login.js @@ -1,6 +1,8 @@ context('Login', () => { beforeEach(() => { + cy.request('/api/method/logout'); cy.visit('/login'); + cy.location().should('be', '/login'); }); it('greets with login screen', () => {