Browse Source

test: PG incorrect project configuration param

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3597/head
Raju Udava 2 years ago committed by Pranav C
parent
commit
15aa5db661
  1. 8
      scripts/cypress/integration/common/00_pre_configurations.js

8
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);
}
});
};

Loading…
Cancel
Save