Skip to content

Commit 1ccc8e4

Browse files
committed
fix about page prime test
1 parent f626b81 commit 1ccc8e4

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

cypress/e2e/tests/pages/generic/about.spec.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,20 @@ describe('About Page', { testIsolation: 'off', tags: ['@generic', '@adminUser',
151151
});
152152
}
153153

154-
it('should show prime panel on about page', () => {
155-
interceptVersionAndSetToPrime().as('rancherVersion');
154+
beforeEach(() => {
156155
cy.login();
157-
aboutPage.goTo();
156+
interceptVersionAndSetToPrime().as('rancherVersion');
157+
});
158+
159+
it('should show prime panel on about page', () => {
160+
HomePagePo.goToAndWaitForGet();
161+
162+
AboutPagePo.navTo();
158163
aboutPage.waitForPage();
159164

165+
// Wait for the intercepted rancherversion request to complete
166+
cy.wait('@rancherVersion');
167+
160168
aboutPage.rancherPrimeInfo().should('exist');
161169
});
162170
});

0 commit comments

Comments
 (0)