Browse Source

test: kludge, add wait for expand record

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3801/head
Raju Udava 2 years ago committed by braks
parent
commit
eafeea416b
  1. 3
      scripts/cypress/integration/common/1b_table_column_operations.js
  2. 11
      scripts/cypress/integration/common/3f_link_to_another_record.js

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

@ -10,6 +10,9 @@ export const genTest = (apiType, dbType) => {
function addNewRow(index, cellValue) { function addNewRow(index, cellValue) {
cy.get(".nc-add-new-row-btn:visible").should("exist"); cy.get(".nc-add-new-row-btn:visible").should("exist");
cy.get(".nc-add-new-row-btn").click(); cy.get(".nc-add-new-row-btn").click();
cy.wait(2000);
// cy.get("#data-table-form-Title > input").first().type(cellValue); // cy.get("#data-table-form-Title > input").first().type(cellValue);
cy.get(".nc-expand-col-Title") cy.get(".nc-expand-col-Title")
.find(".nc-cell > input") .find(".nc-cell > input")

11
scripts/cypress/integration/common/3f_link_to_another_record.js

@ -285,13 +285,18 @@ export const genTest = (apiType, dbType) => {
cy.intercept("GET", `/api/v1/db/data/noco/**`).as("waitForCardLoad"); cy.intercept("GET", `/api/v1/db/data/noco/**`).as("waitForCardLoad");
addRow(3, "2c"); addRow(3, "2c");
cy.wait(waitTime);
cy.get(".nc-row-expand").eq(2).click({ force: true }); cy.get(".nc-row-expand").eq(2).click({ force: true });
cy.wait(waitTime);
// wait for page render to complete // wait for page render to complete
cy.get('button:contains("Save row"):visible').should("exist"); cy.get('button:contains("Save row"):visible').should("exist");
// BT // BT
cy.wait(1000); cy.wait(waitTime);
cy.get(".nc-expand-col-Sheet1") cy.get(".nc-expand-col-Sheet1")
.find(".nc-action-icon") .find(".nc-action-icon")
.should("exist") .should("exist")
@ -313,7 +318,7 @@ export const genTest = (apiType, dbType) => {
.should("exist") .should("exist")
.eq(2) .eq(2)
.click(); .click();
cy.wait(1000); cy.wait(waitTime);
// HM // HM
cy.get(".nc-expand-col-Link2-1hm").find(".ant-btn-primary").click(); cy.get(".nc-expand-col-Link2-1hm").find(".ant-btn-primary").click();
@ -324,7 +329,7 @@ export const genTest = (apiType, dbType) => {
.should("exist") .should("exist")
.eq(2) .eq(2)
.click(); .click();
cy.wait(1000); cy.wait(waitTime);
cy.getActiveDrawer(".nc-drawer-expanded-form") cy.getActiveDrawer(".nc-drawer-expanded-form")
.find("button") .find("button")

Loading…
Cancel
Save