Skip to content

Commit 2bcaff4

Browse files
Renamed and enhanced gtl_no_record for more versatility
1 parent 4885524 commit 2bcaff4

File tree

1 file changed

+2
-2
lines changed
  • cypress/support/commands

1 file changed

+2
-2
lines changed

cypress/support/commands/gtl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Cypress.Commands.add('gtl_error', () => {
44
return cy.get('#miq-gtl-view > #flash_msg_div').should('be.visible');
55
});
66

7-
Cypress.Commands.add('gtl_no_record', () => {
8-
return cy.get('#miq-gtl-view > div.no-record').should('be.visible');
7+
Cypress.Commands.add('verify_gtl_no_records_text', ({ containsText = 'No records' } = {}) => {
8+
return cy.contains('#miq-gtl-view', containsText).should('be.visible');
99
});
1010

1111
Cypress.Commands.add('gtlGetTable', () => {

0 commit comments

Comments
 (0)