vega-frontend-monorepo/apps/explorer-e2e/src/integration/validator.cy.js

20 lines
616 B
JavaScript

context('Validator page', { tags: '@smoke' }, function () {
before('Visit validators page and obtain data', function () {
cy.visit('/validators');
});
describe('Verify elements on page', function () {
it('should be able to see validator tiles', function () {
cy.getNodes().then((nodes) => {
nodes.forEach((node) => {
if (node.rankingScore.performanceScore > 0) {
cy.get(`[validator-id="${node.id}"]`).should('be.visible');
} else {
cy.get(`[validator-id="${node.id}"]`).should('not.exist');
}
});
});
});
});
});