@@ -79,7 +79,7 @@ Cypress.Commands.add('openPanelsModal', () => {
7979 cy . showAdvancedOptions ( ) ;
8080 cy . get ( '#manage-overview-panels-button' ) . click ( ) ;
8181 cy . get ( '#overview-panels-modal' ) . should ( 'exist' ) ;
82- cy . get ( '#overview-panels-modal' ) . find ( '.pf-c-data-list__item-content' ) . should ( 'have.length' , c . availablePanelsCount ) ;
82+ cy . get ( '#overview-panels-modal' ) . find ( '.pf-v5- c-data-list__item-content' ) . should ( 'have.length' , c . availablePanelsCount ) ;
8383} ) ;
8484
8585Cypress . Commands . add ( 'checkColumns' , ( groups = c . defaultColumnGroupCount , cols = c . defaultColumnCount ) => {
@@ -104,13 +104,13 @@ Cypress.Commands.add('openColumnsModal', () => {
104104 cy . showAdvancedOptions ( ) ;
105105 cy . get ( '#manage-columns-button' ) . click ( ) ;
106106 cy . get ( '#columns-modal' ) . should ( 'exist' ) ;
107- cy . get ( '#columns-modal' ) . find ( '.pf-c-data-list__item-content' ) . should ( 'have.length' , c . availableColumnCount ) ;
107+ cy . get ( '#columns-modal' ) . find ( '.pf-v5- c-data-list__item-content' ) . should ( 'have.length' , c . availableColumnCount ) ;
108108} ) ;
109109
110110Cypress . Commands . add ( 'selectPopupItems' , ( id , names ) => {
111111 for ( let i = 0 ; i < names . length ; i ++ ) {
112112 cy . get ( id ) . get ( '.modal-body' ) . contains ( names [ i ] )
113- . closest ( '.pf-c-data-list__item-row' ) . find ( '.pf-c-data-list__check' ) . click ( ) ;
113+ . closest ( '.pf-v5- c-data-list__item-row' ) . find ( '.pf-v5 -c-data-list__check' ) . click ( ) ;
114114 }
115115} ) ;
116116
@@ -131,8 +131,8 @@ Cypress.Commands.add('sortColumn', (name) => {
131131
132132Cypress . Commands . add ( 'dropdownSelect' , ( id , name ) => {
133133 cy . get ( `#${ id } ` ) . click ( ) ;
134- cy . get ( '.pf-c-dropdown__menu ' ) . should ( 'exist' ) ;
135- cy . get ( '.pf-c-dropdown__menu ' ) . find ( `#${ name } ` ) . click ( ) ;
134+ cy . get ( '.pf-v5-c-menu__content ' ) . should ( 'exist' ) ;
135+ cy . get ( '.pf-v5-c-menu__content ' ) . find ( `#${ name } ` ) . click ( ) ;
136136} ) ;
137137
138138Cypress . Commands . add ( 'checkContent' , ( topology ) => {
@@ -145,9 +145,9 @@ Cypress.Commands.add('checkContent', (topology) => {
145145
146146Cypress . Commands . add ( 'addFilter' , ( filter , value , topology ) => {
147147 cy . get ( '#column-filter-toggle' ) . click ( ) ;
148- cy . get ( '.pf-c-accordion__expanded -content-body ' ) . find ( `#${ filter } ` ) . click ( ) ;
149- cy . get ( '.pf-c-accordion__expanded -content-body ' ) . should ( 'not.exist' ) ;
150- cy . get ( '#column-filter-dropdown' ) . parent ( ) . children ( ) . eq ( 1 ) . type ( `${ value } {enter}` ) ;
148+ cy . get ( '.pf-v5-c-accordion__expandable -content.pf-m-expanded ' ) . find ( `#${ filter } ` ) . click ( ) ;
149+ cy . get ( '.pf-v5-c-accordion__expandable -content.pf-m-expanded ' ) . should ( 'not.exist' ) ;
150+ cy . get ( 'input[type="search"]' ) . type ( `${ value } {enter}` ) ;
151151 cy . checkContent ( topology ) ;
152152} ) ;
153153
@@ -160,7 +160,7 @@ Cypress.Commands.add('changeQueryOption', (name, topology) => {
160160
161161Cypress . Commands . add ( 'changeTimeRange' , ( name , topology ) => {
162162 cy . get ( '#time-range-dropdown-dropdown' ) . click ( ) ;
163- cy . get ( '.pf-c-dropdown__menu ' ) . contains ( name ) . click ( ) ;
163+ cy . get ( '.pf-v5-c-menu__content ' ) . contains ( name ) . click ( ) ;
164164 cy . checkContent ( topology ) ;
165165} ) ;
166166
@@ -169,7 +169,7 @@ Cypress.Commands.add('changeMetricFunction', (name) => {
169169 cy . showDisplayOptions ( ) ;
170170
171171 cy . get ( '#metricFunction-dropdown' ) . click ( ) ;
172- cy . get ( '.pf-c-dropdown__menu ' ) . contains ( name ) . click ( ) ;
172+ cy . get ( '.pf-v5-c-menu__content ' ) . contains ( name ) . click ( ) ;
173173 cy . get ( '[data-layer-id="default"]' ) . children ( ) . its ( 'length' ) . should ( 'be.gte' , 5 ) ;
174174} ) ;
175175
@@ -178,7 +178,7 @@ Cypress.Commands.add('changeMetricType', (name) => {
178178 cy . showDisplayOptions ( ) ;
179179
180180 cy . get ( '#metricType-dropdown' ) . click ( ) ;
181- cy . get ( '.pf-c-dropdown__menu ' ) . contains ( name ) . click ( ) ;
181+ cy . get ( '.pf-v5-c-menu__content ' ) . contains ( name ) . click ( ) ;
182182 cy . get ( '[data-layer-id="default"]' ) . children ( ) . its ( 'length' ) . should ( 'be.gte' , 5 ) ;
183183} ) ;
184184
0 commit comments