Browse Source

test(expanded-form): wait for page load

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3798/head
Raju Udava 2 years ago
parent
commit
42aebcf463
  1. 6
      scripts/cypress/integration/common/4g_table_view_expanded_form.js

6
scripts/cypress/integration/common/4g_table_view_expanded_form.js

@ -66,7 +66,8 @@ export const genTest = (apiType, dbType) => {
.should("exist");
if (viewType === "gallery") {
// cy.intercept('/api/v1/db/meta/galleries/*').as('getGalleryView');
// http://localhost:8080/api/v1/db/data/noco/p_4ufoizgrorwyey/md_g0zc9d40w8zpmy/views/vw_xauikhkm8r49fy?offset=0&limit=25
cy.intercept("/api/v1/db/data/noco/**").as("getGalleryViewData");
// mainPage.unhideField("City List");
cy.get(".nc-fields-menu-btn").click();
@ -75,9 +76,8 @@ export const genTest = (apiType, dbType) => {
.click();
cy.get(".nc-fields-menu-btn").click();
cy.wait(["@getGalleryViewData"]);
cy.get('.ant-card-body [title="City List"]').should("exist");
cy.wait(1000);
// cy.wait(['@getGalleryView'])
}
});

Loading…
Cancel
Save