|
|
@ -30,7 +30,7 @@ import { isXcdb, isPostgres } from "./page_objects/projectConstants"; |
|
|
|
require("@4tw/cypress-drag-drop"); |
|
|
|
require("@4tw/cypress-drag-drop"); |
|
|
|
|
|
|
|
|
|
|
|
// recursively gets an element, returning only after it's determined to be attached to the DOM for good
|
|
|
|
// recursively gets an element, returning only after it's determined to be attached to the DOM for good
|
|
|
|
Cypress.Commands.add('getSettled', (selector, opts = {}) => { |
|
|
|
Cypress.Commands.add("getSettled", (selector, opts = {}) => { |
|
|
|
const retries = opts.retries || 3; |
|
|
|
const retries = opts.retries || 3; |
|
|
|
const delay = opts.delay || 400; |
|
|
|
const delay = opts.delay || 400; |
|
|
|
|
|
|
|
|
|
|
@ -179,7 +179,7 @@ Cypress.Commands.add("openTableTab", (tn, rc) => { |
|
|
|
// for some tables, linked records are not available immediately
|
|
|
|
// for some tables, linked records are not available immediately
|
|
|
|
cy.wait(1000); |
|
|
|
cy.wait(1000); |
|
|
|
|
|
|
|
|
|
|
|
cy.get(".xc-row-table.nc-grid").should("exist"); |
|
|
|
cy.get(".xc-row-table.nc-grid", { timeout: 30000 }).should("exist"); |
|
|
|
|
|
|
|
|
|
|
|
// wait for page rendering to complete
|
|
|
|
// wait for page rendering to complete
|
|
|
|
if (rc != 0) { |
|
|
|
if (rc != 0) { |
|
|
|