Skip to content

Commit c4e6f6f

Browse files
Incorporating changes from #9691
1 parent 31fbf23 commit c4e6f6f

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

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

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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: /\/catalog\/x_button\/\d+\?pressed=svc_catalog_provision/,
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

@@ -337,9 +331,7 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
337331
buttonWrapperClass: 'custom-button-wrapper',
338332
buttonType: 'submit',
339333
}).click();
340-
// TODO: Replace with verify_gtl_no_records_text once #9691 is merged
341-
cy.contains('#miq-gtl-view .no-records-found', 'No records found');
342-
// cy.verify_gtl_no_records_text();
334+
cy.expect_gtl_no_records_with_text();
343335
cy.getFormButtonByTypeWithText({
344336
buttonText: RESET_BUTTON_TEXT,
345337
buttonWrapperClass: 'custom-button-wrapper',
@@ -356,9 +348,7 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
356348
buttonWrapperClass: 'custom-button-wrapper',
357349
buttonType: 'submit',
358350
}).click();
359-
// TODO: Replace with verify_gtl_no_records_text once #9691 is merged
360-
cy.contains('#miq-gtl-view .no-records-found', 'No records found');
361-
// cy.verify_gtl_no_records_text();
351+
cy.expect_gtl_no_records_with_text();
362352
cy.getFormButtonByTypeWithText({
363353
buttonText: RESET_BUTTON_TEXT,
364354
buttonWrapperClass: 'custom-button-wrapper',
@@ -373,9 +363,7 @@ describe('Automate Service Requests form operations: Services > Requests', () =>
373363
buttonWrapperClass: 'custom-button-wrapper',
374364
buttonType: 'submit',
375365
}).click();
376-
// TODO: Replace with verify_gtl_no_records_text once #9691 is merged
377-
cy.contains('#miq-gtl-view .no-records-found', 'No records found');
378-
// cy.verify_gtl_no_records_text();
366+
cy.expect_gtl_no_records_with_text();
379367
cy.getFormButtonByTypeWithText({
380368
buttonText: RESET_BUTTON_TEXT,
381369
buttonWrapperClass: 'custom-button-wrapper',

0 commit comments

Comments
 (0)