diff --git a/apps/governance-e2e/src/integration/view/validators.cy.ts b/apps/governance-e2e/src/integration/view/validators.cy.ts index 95441aa30..2ed63d8ba 100644 --- a/apps/governance-e2e/src/integration/view/validators.cy.ts +++ b/apps/governance-e2e/src/integration/view/validators.cy.ts @@ -34,15 +34,22 @@ const overstakedPenaltyToolTip = 'overstaked-penalty-tooltip'; const multisigPenaltyToolTip = 'multisig-error-tooltip'; const epochCountDown = 'epoch-countdown'; const stakeNumberRegex = /^\d{1,3}(,\d{3})*(\.\d+)?$/; +const txTimeout = Cypress.env('txTimeout'); context('Validators Page - verify elements on page', function () { - beforeEach('navigate to validators page', function () { + before('navigate to validators page', () => { cy.mockGQL((req) => { aliasGQLQuery(req, 'ChainId', chainIdQuery()); aliasGQLQuery(req, 'Statistics', statisticsQuery()); }); cy.visit('/validators'); }); + beforeEach(() => { + cy.mockGQL((req) => { + aliasGQLQuery(req, 'ChainId', chainIdQuery()); + aliasGQLQuery(req, 'Statistics', statisticsQuery()); + }); + }); describe('with wallets disconnected', { tags: '@smoke' }, function () { it('Should have validators tab highlighted', function () { @@ -273,7 +280,7 @@ context('Validators Page - verify elements on page', function () { cy.getByTestId(epochCountDown).within(() => { cy.get(epochTitle).should('not.be.empty'); - cy.get(nextEpochInfo).should('contain.text', 'Next epoch'); + cy.get(nextEpochInfo, txTimeout).should('contain.text', 'Next epoch'); }); }); }