From 751843fa09541614cc3effb407ba2fcb354a5fd3 Mon Sep 17 00:00:00 2001 From: k3yi0 Date: Thu, 28 Apr 2022 13:38:16 +0200 Subject: [PATCH] chore: test flakiness --- ui/cypress/support/commands.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/cypress/support/commands.ts b/ui/cypress/support/commands.ts index ce2f418cf..d6523f1e7 100644 --- a/ui/cypress/support/commands.ts +++ b/ui/cypress/support/commands.ts @@ -65,8 +65,10 @@ export const OAuthLogout = () => { } export const OAuthLoginAsDiffUser = (name: string) => { - setTimeout(changeUserInfo(name), 2000) - return cy.visit('/oauth/oauth-mock/logout') + changeUserInfo(name) + setTimeout(function() { + return cy.visit('/oauth/oauth-mock/logout') + }, 2000) } // Change enviromental values in cypress.json export const createConnection = (url?: string) => {