test: fix for failing Data Control UI test (#17133)
This commit is contained in:
parent
70188934bc
commit
e740ad180d
1 changed files with 2 additions and 3 deletions
|
|
@ -271,10 +271,9 @@ Cypress.Commands.add('save', () => {
|
|||
cy.get(`button[data-label="Save"]:visible`).click({scrollBehavior: false, force: true});
|
||||
cy.wait('@api');
|
||||
});
|
||||
|
||||
Cypress.Commands.add('hide_dialog', () => {
|
||||
cy.wait(400);
|
||||
cy.get('.btn-modal-close:visible').click({force: true});
|
||||
cy.wait(300);
|
||||
cy.get_open_dialog().focus().find('.btn-modal-close').click();
|
||||
cy.get('.modal:visible').should('not.exist');
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue