Browse Source

test(cypress): verify updated row entries after delay

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/805/head
Raju Udava 3 years ago
parent
commit
406ebe1148
  1. 3
      scripts/cypress/integration/common/1c_table_row_operations.js

3
scripts/cypress/integration/common/1c_table_row_operations.js

@ -36,10 +36,11 @@ export const genTest = (type, xcdb) => {
cy.get('#data-table-form-Title > input').first().clear().type(updatedRandVal); cy.get('#data-table-form-Title > input').first().clear().type(updatedRandVal);
cy.contains('Save Row').filter('button').click({force: true}) cy.contains('Save Row').filter('button').click({force: true})
cy.wait(3000) cy.wait(3000).then(() => {
cy.get('td').contains(randVal).should('not.exist'); cy.get('td').contains(randVal).should('not.exist');
cy.get('td').contains(updatedRandVal).should('exist'); cy.get('td').contains(updatedRandVal).should('exist');
}) })
})
it('Delete row', () => { it('Delete row', () => {
cy.get('td').contains(updatedRandVal).rightclick({force: true}) cy.get('td').contains(updatedRandVal).rightclick({force: true})

Loading…
Cancel
Save