From cb4f92b50b5154ab4195230c208e78d89df1c8a8 Mon Sep 17 00:00:00 2001 From: Raju Udava Date: Wed, 24 Nov 2021 16:42:31 +0530 Subject: [PATCH] test(cypress): kludge: add delay before attempting cell update after insert Signed-off-by: Raju Udava --- .../integration/common/1b_table_column_operations.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/cypress/integration/common/1b_table_column_operations.js b/scripts/cypress/integration/common/1b_table_column_operations.js index cb832a626b..0a60960c33 100644 --- a/scripts/cypress/integration/common/1b_table_column_operations.js +++ b/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})