From c375f74906f17d29d7c65a88d2b5367787e057c6 Mon Sep 17 00:00:00 2001 From: Joe Tsang <30622993+jtsang586@users.noreply.github.com> Date: Mon, 8 Aug 2022 15:53:18 +0100 Subject: [PATCH] Test/fix ci test failures (#973) * fix: failing node switcher test * fix: failing staking tests in CI --- apps/explorer-e2e/src/integration/node-switcher.cy.js | 9 +++++---- apps/token-e2e/src/integration/view/staking.cy.js | 3 +-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/explorer-e2e/src/integration/node-switcher.cy.js b/apps/explorer-e2e/src/integration/node-switcher.cy.js index b7c98a3c1..c3f93ed33 100644 --- a/apps/explorer-e2e/src/integration/node-switcher.cy.js +++ b/apps/explorer-e2e/src/integration/node-switcher.cy.js @@ -64,7 +64,7 @@ context('Node switcher', function () { cy.getByTestId('node-url-custom').click(); cy.getByTestId(customNodeBtn).within(() => { - cy.get('input').clear().type('https://n04.d.vega.xyz/query'); + cy.get('input').clear().type('https://api.token.vega.xyz/query'); cy.getByTestId('link').click(); }); validateNodeError(errorTypeTxt, nodeErrorTxt); @@ -75,9 +75,10 @@ context('Node switcher', function () { }); function validateNodeError(errortype, errorMsg) { - cy.getByTestId(nodeErrorType).should('have.text', errortype, { - timeout: 1000, - }); + cy.getByTestId(nodeErrorType, { timeout: 10000 }).should( + 'have.text', + errortype + ); cy.getByTestId(nodeErrorMsg).should('have.text', errorMsg); } }); diff --git a/apps/token-e2e/src/integration/view/staking.cy.js b/apps/token-e2e/src/integration/view/staking.cy.js index f601f64ce..730c68e9e 100644 --- a/apps/token-e2e/src/integration/view/staking.cy.js +++ b/apps/token-e2e/src/integration/view/staking.cy.js @@ -86,7 +86,7 @@ context('Staking Page - verify elements on page', function () { // 1002-STKE-021 it('Should be able to see validator ranking score', function () { - // + cy.get('.ag-body-horizontal-scroll-viewport').scrollTo('right'); cy.get('[col-id="rankingScore"]') .should('have.length.at.least', 1) .each(($rankingScore) => { @@ -114,7 +114,6 @@ context('Staking Page - verify elements on page', function () { // 1002-STKE-024 it('Should be able to see validator voting power score', function () { - cy.get('.ag-body-horizontal-scroll-viewport').scrollTo('right'); cy.get('[col-id="votingPower"]') .should('have.length.at.least', 1) .each(($votingPower) => {