From e581a2396e0cdcce896fd73f48b059003bc67563 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Wed, 31 Aug 2022 22:22:43 +0530 Subject: [PATCH] test: xcdb- wait till project creation is complete Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- scripts/cypress-v2/integration/common/00_pre_configurations.js | 1 + scripts/cypress-v2/support/page_objects/navigation.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/cypress-v2/integration/common/00_pre_configurations.js b/scripts/cypress-v2/integration/common/00_pre_configurations.js index 4f7a98d5ce..77e7af7e25 100644 --- a/scripts/cypress-v2/integration/common/00_pre_configurations.js +++ b/scripts/cypress-v2/integration/common/00_pre_configurations.js @@ -193,6 +193,7 @@ export const genTest = (apiType, dbType) => { } } else { projectsPage.createProject(proj.basic, proj.config); + cy.wait(5000); if (dbType === "xcdb") { // store base URL- to re-visit and delete form view later let projId; diff --git a/scripts/cypress-v2/support/page_objects/navigation.js b/scripts/cypress-v2/support/page_objects/navigation.js index c0f4fb0e1a..6f906ecc1c 100644 --- a/scripts/cypress-v2/support/page_objects/navigation.js +++ b/scripts/cypress-v2/support/page_objects/navigation.js @@ -287,7 +287,7 @@ export class _projectsPage { // } waitHomePageLoad() { - // cy.url({ timeout: 50000 }).should("contain", "&dbalias="); + cy.url({ timeout: 50000 }).should("contain", "/#/nc/p_"); } }