From 15aa5db661a363f5abf7456e73b694bc460fc022 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Tue, 13 Sep 2022 15:11:54 +0530 Subject: [PATCH] test: PG incorrect project configuration param Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .../cypress/integration/common/00_pre_configurations.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/cypress/integration/common/00_pre_configurations.js b/scripts/cypress/integration/common/00_pre_configurations.js index 6ce437e90f..f0a45085df 100644 --- a/scripts/cypress/integration/common/00_pre_configurations.js +++ b/scripts/cypress/integration/common/00_pre_configurations.js @@ -168,7 +168,7 @@ export const genTest = (apiType, dbType) => { loginPage.signUp(roles.owner.credentials); }); - function cy_createProjectBlock(proj) { + function cy_createProjectBlock(proj, apiType, dbType) { // click home button cy.get(".nc-noco-brand-icon").click(); cy.get(".ant-table-content").then((obj) => { @@ -245,10 +245,10 @@ export const genTest = (apiType, dbType) => { cy.task( 'pgExecTest', `SELECT 1+1`, {timeout: 120000} - ).then(() => cy_createProjectBlock(proj)); + ).then(() => cy_createProjectBlock(proj, apiType, dbType)); } else { - cy_createProjectBlock(proj); + cy_createProjectBlock(proj, apiType, dbType); } }); }; @@ -258,7 +258,7 @@ export const genTest = (apiType, dbType) => { } else if (dbType === "mysql") { createProject(staticProjects.externalREST); } else if (dbType === "postgres") { - createProject(staticProjects.externalREST); + createProject(staticProjects.pgExternalREST); } }); };