Test/fix ci test failures (#973)
* fix: failing node switcher test * fix: failing staking tests in CI
This commit is contained in:
parent
df8fed2af2
commit
c375f74906
@ -64,7 +64,7 @@ context('Node switcher', function () {
|
|||||||
cy.getByTestId('node-url-custom').click();
|
cy.getByTestId('node-url-custom').click();
|
||||||
|
|
||||||
cy.getByTestId(customNodeBtn).within(() => {
|
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();
|
cy.getByTestId('link').click();
|
||||||
});
|
});
|
||||||
validateNodeError(errorTypeTxt, nodeErrorTxt);
|
validateNodeError(errorTypeTxt, nodeErrorTxt);
|
||||||
@ -75,9 +75,10 @@ context('Node switcher', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function validateNodeError(errortype, errorMsg) {
|
function validateNodeError(errortype, errorMsg) {
|
||||||
cy.getByTestId(nodeErrorType).should('have.text', errortype, {
|
cy.getByTestId(nodeErrorType, { timeout: 10000 }).should(
|
||||||
timeout: 1000,
|
'have.text',
|
||||||
});
|
errortype
|
||||||
|
);
|
||||||
cy.getByTestId(nodeErrorMsg).should('have.text', errorMsg);
|
cy.getByTestId(nodeErrorMsg).should('have.text', errorMsg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -86,7 +86,7 @@ context('Staking Page - verify elements on page', function () {
|
|||||||
|
|
||||||
// 1002-STKE-021
|
// 1002-STKE-021
|
||||||
it('Should be able to see validator ranking score', function () {
|
it('Should be able to see validator ranking score', function () {
|
||||||
//
|
cy.get('.ag-body-horizontal-scroll-viewport').scrollTo('right');
|
||||||
cy.get('[col-id="rankingScore"]')
|
cy.get('[col-id="rankingScore"]')
|
||||||
.should('have.length.at.least', 1)
|
.should('have.length.at.least', 1)
|
||||||
.each(($rankingScore) => {
|
.each(($rankingScore) => {
|
||||||
@ -114,7 +114,6 @@ context('Staking Page - verify elements on page', function () {
|
|||||||
|
|
||||||
// 1002-STKE-024
|
// 1002-STKE-024
|
||||||
it('Should be able to see validator voting power score', function () {
|
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"]')
|
cy.get('[col-id="votingPower"]')
|
||||||
.should('have.length.at.least', 1)
|
.should('have.length.at.least', 1)
|
||||||
.each(($votingPower) => {
|
.each(($votingPower) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user