@@ -51,20 +51,42 @@ context('HANA scale-up checks', () => {
51
51
cy . get ( 'button' ) . contains ( 'Back to Cluster Details' ) . click ( ) ;
52
52
cy . get ( 'button' ) . contains ( 'Start Execution' ) . click ( ) ;
53
53
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' ) ;
56
57
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 ] ;
60
61
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' ) ;
66
89
} ) ;
67
- } ) ;
68
90
} ) ;
69
91
} ) ;
70
92
} ) ;
0 commit comments