@@ -68,7 +68,7 @@ Cypress.Commands.add('showDisplayOptions', () => {
6868 } )
6969} ) ;
7070
71- Cypress . Commands . add ( 'checkPanels' , ( panels = 4 ) => {
71+ Cypress . Commands . add ( 'checkPanels' , ( panels = 7 ) => {
7272 cy . get ( '#overview-flex' ) . find ( '.overview-card' ) . its ( 'length' ) . should ( 'eq' , panels ) ;
7373} ) ;
7474
@@ -109,6 +109,12 @@ Cypress.Commands.add('selectPopupItems', (id, names) => {
109109 }
110110} ) ;
111111
112+ Cypress . Commands . add ( 'checkPopupItems' , ( id , ids ) => {
113+ for ( let i = 0 ; i < ids . length ; i ++ ) {
114+ cy . get ( id ) . find ( '.modal-body' ) . find ( `#${ ids [ i ] } ` ) . check ( ) ;
115+ }
116+ } ) ;
117+
112118Cypress . Commands . add ( 'sortColumn' , ( name ) => {
113119 cy . get ( 'thead' ) . contains ( name ) . click ( ) ;
114120 cy . get ( '[aria-sort="ascending"]' ) . should ( 'have.length' , 1 ) ;
@@ -132,7 +138,7 @@ Cypress.Commands.add('checkContent', (topology) => {
132138 }
133139} ) ;
134140
135- Cypress . Commands . add ( 'addCommonFilter ' , ( filter , value , topology ) => {
141+ Cypress . Commands . add ( 'addFilter ' , ( filter , value , topology ) => {
136142 cy . get ( '#column-filter-toggle' ) . click ( ) ;
137143 cy . get ( '.pf-c-accordion__expanded-content-body' ) . find ( `#${ filter } ` ) . click ( ) ;
138144 cy . get ( '.pf-c-accordion__expanded-content-body' ) . should ( 'not.exist' ) ;
@@ -182,10 +188,11 @@ declare global {
182188 checkColumns ( groups ?: number , cols ?: number ) : Chainable < Element >
183189 openColumnsModal ( ) : Chainable < Element >
184190 selectPopupItems ( id : string , names : string [ ] ) : Chainable < Element >
191+ checkPopupItems ( id : string , ids : string [ ] ) : Chainable < Element >
185192 sortColumn ( name : string ) : Chainable < Element >
186193 dropdownSelect ( id : string , name : string ) : Chainable < Element >
187194 checkContent ( topology ?: boolean ) : Chainable < Element >
188- addCommonFilter ( filter : string , value : string , topology ?: boolean ) : Chainable < Element >
195+ addFilter ( filter : string , value : string , topology ?: boolean ) : Chainable < Element >
189196 changeQueryOption ( name : string , topology ?: boolean ) : Chainable < Element >
190197 changeTimeRange ( name : string , topology ?: boolean ) : Chainable < Element >
191198 changeMetricFunction ( name : string ) : Chainable < Element >
0 commit comments