From a8bb648dbf8fa6d40f4d80640d7e56de762847bd Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Tue, 25 Oct 2022 14:18:19 +0530 Subject: [PATCH] test: fix for handling new record at end Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .../integration/common/3f_link_to_another_record.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/cypress/integration/common/3f_link_to_another_record.js b/scripts/cypress/integration/common/3f_link_to_another_record.js index efada58e54..5801365a05 100644 --- a/scripts/cypress/integration/common/3f_link_to_another_record.js +++ b/scripts/cypress/integration/common/3f_link_to_another_record.js @@ -285,6 +285,14 @@ export const genTest = (apiType, dbType) => { cy.intercept("GET", `/api/v1/db/data/noco/**`).as("waitForCardLoad"); addRow(3, "2c"); + // kludge; remove empty record in the end + mainPage.getCell("Title", 3).click(); + mainPage.getCell("Title", 4).rightclick(); + // delete row + cy.getActiveMenu(".nc-dropdown-grid-context-menu") + .find('.ant-dropdown-menu-item:contains("Delete Row")') + .first() + .click(); cy.get(".nc-row-expand").eq(2).click({ force: true });