2022-09-22 17:40:11 +00:00
|
|
|
context('Validator page', { tags: '@smoke' }, function () {
|
2022-10-11 10:37:36 +00:00
|
|
|
before('Visit validators page and obtain data', function () {
|
2023-02-27 09:17:23 +00:00
|
|
|
cy.visit('/validators');
|
2022-10-11 10:37:36 +00:00
|
|
|
});
|
|
|
|
|
2022-07-13 10:17:10 +00:00
|
|
|
describe('Verify elements on page', function () {
|
2023-02-27 09:17:23 +00:00
|
|
|
it('should be able to see validator tiles', function () {
|
|
|
|
cy.getNodes().then((nodes) => {
|
|
|
|
nodes.forEach((node) => {
|
2023-07-27 09:04:54 +00:00
|
|
|
if (node.rankingScore.performanceScore > 0) {
|
|
|
|
cy.get(`[validator-id="${node.id}"]`).should('be.visible');
|
|
|
|
} else {
|
|
|
|
cy.get(`[validator-id="${node.id}"]`).should('not.exist');
|
|
|
|
}
|
2022-10-13 10:21:06 +00:00
|
|
|
});
|
2023-02-27 09:17:23 +00:00
|
|
|
});
|
2022-10-13 10:21:06 +00:00
|
|
|
});
|
2022-07-13 10:17:10 +00:00
|
|
|
});
|
|
|
|
});
|