Skip to content

Commit 31fbf23

Browse files
Incorporating changes from ManageIQ#9701
1 parent bd270ac commit 31fbf23

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cypress/e2e/ui/Services/Requests/service_requests.cy.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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,7 +284,7 @@ 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,
289289
buttonWrapperClass: 'custom-button-wrapper',
290290
}).click();
@@ -332,15 +332,15 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
332332
inputId: 'approvalStates-approved',
333333
inputType: 'checkbox',
334334
}).should('not.be.checked');
335-
cy.getFormFooterButtonByTypeWithText({
335+
cy.getFormButtonByTypeWithText({
336336
buttonText: APPLY_BUTTON_TEXT,
337337
buttonWrapperClass: 'custom-button-wrapper',
338338
buttonType: 'submit',
339339
}).click();
340340
// TODO: Replace with verify_gtl_no_records_text once #9691 is merged
341341
cy.contains('#miq-gtl-view .no-records-found', 'No records found');
342342
// cy.verify_gtl_no_records_text();
343-
cy.getFormFooterButtonByTypeWithText({
343+
cy.getFormButtonByTypeWithText({
344344
buttonText: RESET_BUTTON_TEXT,
345345
buttonWrapperClass: 'custom-button-wrapper',
346346
}).click();
@@ -351,15 +351,15 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
351351
cy.getFormSelectFieldById({ selectId: 'types' }).select(
352352
TYPE_VM_PROVISION
353353
);
354-
cy.getFormFooterButtonByTypeWithText({
354+
cy.getFormButtonByTypeWithText({
355355
buttonText: APPLY_BUTTON_TEXT,
356356
buttonWrapperClass: 'custom-button-wrapper',
357357
buttonType: 'submit',
358358
}).click();
359359
// TODO: Replace with verify_gtl_no_records_text once #9691 is merged
360360
cy.contains('#miq-gtl-view .no-records-found', 'No records found');
361361
// cy.verify_gtl_no_records_text();
362-
cy.getFormFooterButtonByTypeWithText({
362+
cy.getFormButtonByTypeWithText({
363363
buttonText: RESET_BUTTON_TEXT,
364364
buttonWrapperClass: 'custom-button-wrapper',
365365
}).click();
@@ -368,15 +368,15 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
368368
});
369369
// Filter data with
370370
cy.getFormInputFieldByIdAndType({ inputId: 'reasonText' }).type('r@ndOm');
371-
cy.getFormFooterButtonByTypeWithText({
371+
cy.getFormButtonByTypeWithText({
372372
buttonText: APPLY_BUTTON_TEXT,
373373
buttonWrapperClass: 'custom-button-wrapper',
374374
buttonType: 'submit',
375375
}).click();
376376
// TODO: Replace with verify_gtl_no_records_text once #9691 is merged
377377
cy.contains('#miq-gtl-view .no-records-found', 'No records found');
378378
// cy.verify_gtl_no_records_text();
379-
cy.getFormFooterButtonByTypeWithText({
379+
cy.getFormButtonByTypeWithText({
380380
buttonText: RESET_BUTTON_TEXT,
381381
buttonWrapperClass: 'custom-button-wrapper',
382382
}).click();

0 commit comments

Comments
 (0)