Browse Source

test(cypress): kludge: add delay before attempting cell update after insert

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/764/head
Raju Udava 3 years ago
parent
commit
cb4f92b50b
  1. 7
      scripts/cypress/integration/common/1b_table_column_operations.js

7
scripts/cypress/integration/common/1b_table_column_operations.js

@ -91,7 +91,10 @@ export const genTest = (type, xcdb) => {
cy.wait(2000)
cy.get('.nc-add-new-row-btn').click({force: true});
cy.get('#data-table-form-Title > input').first().type(randVal);
cy.getActiveModal().find('button').contains('Save Row').click({force: true})
cy.getActiveModal().find('button').contains('Save Row').click({ force: true })
// kludge- add delay to ensure previous operations are completed
cy.wait(2000)
mainPage.getCell('Title', 1).contains(randVal).should('exist')
})
@ -107,7 +110,7 @@ export const genTest = (type, xcdb) => {
})
it('Delete row', () => {
cy.get('td').contains(updatedRandVal).rightclick({force: true})
mainPage.getCell('Title', 1).contains(updatedRandVal).rightclick({ force: true })
// delete row
cy.getActiveMenu().find('.v-list-item:contains("Delete Row")').first().click({force: true})

Loading…
Cancel
Save