From 53bd726e3bdd44216f9c29635510d6042c58b159 Mon Sep 17 00:00:00 2001 From: Alessio Biancalana Date: Fri, 1 Dec 2023 11:46:00 +0100 Subject: [PATCH] Add expectations for C620DC check --- .../cypress/e2e/hana_scale_up_checks.cy.js | 44 ++++++++++++++----- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/test/e2e/cypress/e2e/hana_scale_up_checks.cy.js b/test/e2e/cypress/e2e/hana_scale_up_checks.cy.js index cea61291d9..553c1a4d9e 100644 --- a/test/e2e/cypress/e2e/hana_scale_up_checks.cy.js +++ b/test/e2e/cypress/e2e/hana_scale_up_checks.cy.js @@ -51,20 +51,42 @@ context('HANA scale-up checks', () => { cy.get('button').contains('Back to Cluster Details').click(); cy.get('button').contains('Start Execution').click(); - cy.get('table').each((_, index) => { - cy.get('table').eq(index).find('.tn-check-result-row').as('rows'); + cy.get('table') + .each((_, index) => { + cy.get('table').eq(index).find('.tn-check-result-row').as('rows'); - cy.get('@rows').each((elem) => { - const checkID = elem.find('td').get(0).innerText; - const result = expectedCheckResults[checkID]; + cy.get('@rows').each((elem) => { + const checkID = elem.find('td').get(0).innerText; + const result = expectedCheckResults[checkID]; - if (result) { - cy.get(elem) - .find('[data-testid="eos-svg-component"]') - .should('have.class', result); - } + if (result) { + cy.get(elem) + .find('[data-testid="eos-svg-component"]') + .should('have.class', result); + } + }); + }) + .then(() => { + cy.get('td') + .contains('Corosync expected_votes is set to expected value') + .click(); + cy.get('span').contains('1/1 Expectations met').click(); + cy.get('div') + .get('.text-sm') + .contains('expected_votes') + .siblings() + .should('contain', 'Passing'); + cy.get('div') + .get('.text-sm') + .contains('expected_expected_votes') + .siblings() + .should('contain', '2'); + cy.get('div') + .get('.text-sm') + .contains('corosync_expected_votes') + .siblings() + .should('contain', '2'); }); - }); }); }); });