From 3f893fb16d6c2afd786daced70f3eb9fb47c273d Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 30 Jan 2022 15:25:34 +0100 Subject: [PATCH] fix(tests): don't visit / directly but use navigation instead --- cypress/integration/list/list-history.spec.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cypress/integration/list/list-history.spec.js b/cypress/integration/list/list-history.spec.js index 36b74ad4f..ba8d69e06 100644 --- a/cypress/integration/list/list-history.spec.js +++ b/cypress/integration/list/list-history.spec.js @@ -33,8 +33,12 @@ describe('List History', () => { cy.wait('@loadNamespaces') cy.wait('@loadList') - cy.visit('/') - cy.wait('@loadNamespaces') + // cy.visit('/') + // cy.wait('@loadNamespaces') + // Not using cy.visit here to work around the redirect issue fixed in #1337 + cy.get('nav.menu.top-menu a') + .contains('Overview') + .click() cy.get('body') .should('contain', 'Last viewed')