From 32c055b16b1963c9c3647026a7ce69cd38d6ad6c Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sun, 29 Aug 2021 15:16:11 +0530 Subject: [PATCH] test(cypress): test corrections Signed-off-by: Pranav C --- .../integration/common/table_row_operations_spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cypress/integration/common/table_row_operations_spec.js b/cypress/integration/common/table_row_operations_spec.js index 7c6af30c4f..a92915c0cf 100644 --- a/cypress/integration/common/table_row_operations_spec.js +++ b/cypress/integration/common/table_row_operations_spec.js @@ -26,11 +26,11 @@ const genTest = (type) => { it('Add new row', () => { - cy.get('.nc-add-new-row-btn').click(); + cy.get('.nc-add-new-row-btn').click({force: true}); cy.get('#data-table-form-Title > input').first().type(randVal); - cy.contains('Save Row').filter('button').click({force:true}) + cy.contains('Save Row').filter('button').click({force: true}) cy.get('td').contains(randVal).should('exist'); @@ -40,11 +40,11 @@ const genTest = (type) => { cy.get('td').contains(randVal) .closest('tr') .find('.nc-row-expand-icon') - .click({force:true}); + .click({force: true}); 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.get('td').contains(updatedRandVal).should('exist'); @@ -54,10 +54,10 @@ const genTest = (type) => { it('Delete row', () => { - cy.get('td').contains(updatedRandVal).rightclick({force:true}) + cy.get('td').contains(updatedRandVal).rightclick({force: true}) // delete row - cy.getActiveMenu().find('.v-list-item:contains("Delete Row")').first().click({force:true}) + cy.getActiveMenu().find('.v-list-item:contains("Delete Row")').first().click({force: true}) cy.wait(1000) cy.get('td').contains(randVal).should('not.exist'); })