@@ -226,7 +226,7 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
226226 [ FIELD_CONFIG_KEYS . ID ] : 'reasonText' ,
227227 } ,
228228 ] ) ;
229- cy . validateFormFooterButtons ( [
229+ cy . validateFormButtons ( [
230230 {
231231 [ BUTTON_CONFIG_KEYS . BUTTON_TEXT ] : APPLY_BUTTON_TEXT ,
232232 [ BUTTON_CONFIG_KEYS . BUTTON_TYPE ] : 'submit' ,
@@ -284,9 +284,8 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
284284 cy . getFormInputFieldByIdAndType ( { inputId : 'reasonText' } ) . type (
285285 'Testing'
286286 ) ;
287- cy . getFormFooterButtonByTypeWithText ( {
287+ cy . getFormButtonByTypeWithText ( {
288288 buttonText : RESET_BUTTON_TEXT ,
289- buttonWrapperClass : 'custom-button-wrapper' ,
290289 } ) . click ( ) ;
291290 cy . getFormSelectFieldById ( { selectId : 'selectedUser' } ) . should (
292291 'have.value' ,
@@ -332,17 +331,15 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
332331 inputId : 'approvalStates-approved' ,
333332 inputType : 'checkbox' ,
334333 } ) . should ( 'not.be.checked' ) ;
335- cy . getFormFooterButtonByTypeWithText ( {
334+ cy . getFormButtonByTypeWithText ( {
336335 buttonText : APPLY_BUTTON_TEXT ,
337- buttonWrapperClass : 'custom-button-wrapper' ,
338336 buttonType : 'submit' ,
339337 } ) . click ( ) ;
340338 // TODO: Replace with verify_gtl_no_records_text once #9691 is merged
341339 cy . contains ( '#miq-gtl-view .no-records-found' , 'No records found' ) ;
342340 // cy.verify_gtl_no_records_text();
343- cy . getFormFooterButtonByTypeWithText ( {
341+ cy . getFormButtonByTypeWithText ( {
344342 buttonText : RESET_BUTTON_TEXT ,
345- buttonWrapperClass : 'custom-button-wrapper' ,
346343 } ) . click ( ) ;
347344 cy . gtlGetRows ( [ 0 ] ) . then ( ( data ) => {
348345 expect ( data . length ) . to . equal ( 1 ) ;
@@ -351,34 +348,30 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
351348 cy . getFormSelectFieldById ( { selectId : 'types' } ) . select (
352349 TYPE_VM_PROVISION
353350 ) ;
354- cy . getFormFooterButtonByTypeWithText ( {
351+ cy . getFormButtonByTypeWithText ( {
355352 buttonText : APPLY_BUTTON_TEXT ,
356- buttonWrapperClass : 'custom-button-wrapper' ,
357353 buttonType : 'submit' ,
358354 } ) . click ( ) ;
359355 // TODO: Replace with verify_gtl_no_records_text once #9691 is merged
360356 cy . contains ( '#miq-gtl-view .no-records-found' , 'No records found' ) ;
361357 // cy.verify_gtl_no_records_text();
362- cy . getFormFooterButtonByTypeWithText ( {
358+ cy . getFormButtonByTypeWithText ( {
363359 buttonText : RESET_BUTTON_TEXT ,
364- buttonWrapperClass : 'custom-button-wrapper' ,
365360 } ) . click ( ) ;
366361 cy . gtlGetRows ( [ 0 ] ) . then ( ( data ) => {
367362 expect ( data . length ) . to . equal ( 1 ) ;
368363 } ) ;
369364 // Filter data with
370365 cy . getFormInputFieldByIdAndType ( { inputId : 'reasonText' } ) . type ( 'r@ndOm' ) ;
371- cy . getFormFooterButtonByTypeWithText ( {
366+ cy . getFormButtonByTypeWithText ( {
372367 buttonText : APPLY_BUTTON_TEXT ,
373- buttonWrapperClass : 'custom-button-wrapper' ,
374368 buttonType : 'submit' ,
375369 } ) . click ( ) ;
376370 // TODO: Replace with verify_gtl_no_records_text once #9691 is merged
377371 cy . contains ( '#miq-gtl-view .no-records-found' , 'No records found' ) ;
378372 // cy.verify_gtl_no_records_text();
379- cy . getFormFooterButtonByTypeWithText ( {
373+ cy . getFormButtonByTypeWithText ( {
380374 buttonText : RESET_BUTTON_TEXT ,
381- buttonWrapperClass : 'custom-button-wrapper' ,
382375 } ) . click ( ) ;
383376 cy . gtlGetRows ( [ 0 ] ) . then ( ( data ) => {
384377 expect ( data . length ) . to . equal ( 1 ) ;
0 commit comments