Browse Source

test: modified toast wait check

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3445/head
Raju Udava 2 years ago
parent
commit
ed1e890119
  1. 2
      scripts/cypress-v2/support/commands.js

2
scripts/cypress-v2/support/commands.js

@ -378,7 +378,7 @@ Cypress.Commands.add("createColumn", (table, columnName) => {
});
Cypress.Commands.add("toastWait", (msg) => {
cy.get('.ant-message-notice-content:visible', { timout: 30000 }).should('exist')
// cy.get('.ant-message-notice-content:visible', { timout: 30000 }).should('exist')
cy.get('.ant-message-notice-content:visible', { timout: 12000 }).contains(msg).should('exist')
cy.get('.ant-message-notice-content:visible', { timout: 12000 }).should('not.exist')
});

Loading…
Cancel
Save