fix(tests): don't visit / directly but use navigation instead

This commit is contained in:
kolaente 2022-01-30 15:25:34 +01:00
parent 05350affad
commit 3f893fb16d
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -33,8 +33,12 @@ describe('List History', () => {
cy.wait('@loadNamespaces') cy.wait('@loadNamespaces')
cy.wait('@loadList') cy.wait('@loadList')
cy.visit('/') // cy.visit('/')
cy.wait('@loadNamespaces') // 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') cy.get('body')
.should('contain', 'Last viewed') .should('contain', 'Last viewed')