@@ -124,9 +124,7 @@ function dataSetup() {
124124 // Order
125125 cy . accordion ( SERVICE_CATALOGS_ACCORDION ) ;
126126 cy . selectAccordionItem ( [ ALL_SERVICES_ACCORDION_ITEM ] ) ;
127- // TODO: Replace with clickTableRowByText once #9691 is merged
128- cy . contains ( '.miq-data-table table tbody tr td' , CATALOG_ITEM_NAME ) . click ( ) ;
129- // cy.clickTableRowByText({ text: CATALOG_ITEM_NAME, columnIndex: 1 });
127+ cy . clickTableRowByText ( { text : CATALOG_ITEM_NAME , columnIndex : 0 } ) ;
130128 cy . interceptApi ( {
131129 urlPattern : / \/ c a t a l o g \/ x _ b u t t o n \/ \d + \? p r e s s e d = s v c _ c a t a l o g _ p r o v i s i o n / ,
132130 alias : 'orderApi' ,
@@ -230,16 +228,12 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
230228 {
231229 [ BUTTON_CONFIG_KEYS . BUTTON_TEXT ] : APPLY_BUTTON_TEXT ,
232230 [ BUTTON_CONFIG_KEYS . BUTTON_TYPE ] : 'submit' ,
233- [ BUTTON_CONFIG_KEYS . BUTTON_WRAPPER_CLASS ] : 'custom-button-wrapper' ,
234231 } ,
235232 {
236233 [ BUTTON_CONFIG_KEYS . BUTTON_TEXT ] : RESET_BUTTON_TEXT ,
237- [ BUTTON_CONFIG_KEYS . BUTTON_WRAPPER_CLASS ] : 'custom-button-wrapper' ,
238234 } ,
239235 ] ) ;
240- // TODO: Replace with verify_gtl_no_records_text once #9691 is merged
241- cy . contains ( '#miq-gtl-view .no-records-found' , 'No records found' ) ;
242- // cy.verify_gtl_no_records_text();
236+ cy . expect_gtl_no_records_with_text ( ) ;
243237 } ) ;
244238 } ) ;
245239
@@ -335,9 +329,7 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
335329 buttonText : APPLY_BUTTON_TEXT ,
336330 buttonType : 'submit' ,
337331 } ) . click ( ) ;
338- // TODO: Replace with verify_gtl_no_records_text once #9691 is merged
339- cy . contains ( '#miq-gtl-view .no-records-found' , 'No records found' ) ;
340- // cy.verify_gtl_no_records_text();
332+ cy . expect_gtl_no_records_with_text ( ) ;
341333 cy . getFormButtonByTypeWithText ( {
342334 buttonText : RESET_BUTTON_TEXT ,
343335 } ) . click ( ) ;
@@ -352,9 +344,7 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
352344 buttonText : APPLY_BUTTON_TEXT ,
353345 buttonType : 'submit' ,
354346 } ) . click ( ) ;
355- // TODO: Replace with verify_gtl_no_records_text once #9691 is merged
356- cy . contains ( '#miq-gtl-view .no-records-found' , 'No records found' ) ;
357- // cy.verify_gtl_no_records_text();
347+ cy . expect_gtl_no_records_with_text ( ) ;
358348 cy . getFormButtonByTypeWithText ( {
359349 buttonText : RESET_BUTTON_TEXT ,
360350 } ) . click ( ) ;
@@ -367,9 +357,7 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
367357 buttonText : APPLY_BUTTON_TEXT ,
368358 buttonType : 'submit' ,
369359 } ) . click ( ) ;
370- // TODO: Replace with verify_gtl_no_records_text once #9691 is merged
371- cy . contains ( '#miq-gtl-view .no-records-found' , 'No records found' ) ;
372- // cy.verify_gtl_no_records_text();
360+ cy . expect_gtl_no_records_with_text ( ) ;
373361 cy . getFormButtonByTypeWithText ( {
374362 buttonText : RESET_BUTTON_TEXT ,
375363 } ) . click ( ) ;
0 commit comments