Skip to content

Commit 5629fa3

Browse files
committed
Add expectations for C620DC check
1 parent 17263af commit 5629fa3

File tree

1 file changed

+33
-11
lines changed

1 file changed

+33
-11
lines changed

test/e2e/cypress/e2e/hana_scale_up_checks.cy.js

+33-11
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,42 @@ context('HANA scale-up checks', () => {
5151
cy.get('button').contains('Back to Cluster Details').click();
5252
cy.get('button').contains('Start Execution').click();
5353

54-
cy.get('table').each((_, index) => {
55-
cy.get('table').eq(index).find('.tn-check-result-row').as('rows');
54+
cy.get('table')
55+
.each((_, index) => {
56+
cy.get('table').eq(index).find('.tn-check-result-row').as('rows');
5657

57-
cy.get('@rows').each((elem) => {
58-
const checkID = elem.find('td').get(0).innerText;
59-
const result = expectedCheckResults[checkID];
58+
cy.get('@rows').each((elem) => {
59+
const checkID = elem.find('td').get(0).innerText;
60+
const result = expectedCheckResults[checkID];
6061

61-
if (result) {
62-
cy.get(elem)
63-
.find('[data-testid="eos-svg-component"]')
64-
.should('have.class', result);
65-
}
62+
if (result) {
63+
cy.get(elem)
64+
.find('[data-testid="eos-svg-component"]')
65+
.should('have.class', result);
66+
}
67+
});
68+
})
69+
.then(() => {
70+
cy.get('td')
71+
.contains('Corosync expected_votes is set to expected value')
72+
.click();
73+
cy.get('span').contains('1/1 Expectations met').click();
74+
cy.get('div')
75+
.get('.text-sm')
76+
.contains('expected_votes')
77+
.siblings()
78+
.should('contain', 'Passing');
79+
cy.get('div')
80+
.get('.text-sm')
81+
.contains('expected_expected_votes')
82+
.siblings()
83+
.should('contain', '2');
84+
cy.get('div')
85+
.get('.text-sm')
86+
.contains('corosync_expected_votes')
87+
.siblings()
88+
.should('contain', '2');
6689
});
67-
});
6890
});
6991
});
7092
});

0 commit comments

Comments
 (0)