|
|
|
@ -168,9 +168,7 @@ export const genTest = (apiType, dbType) => {
|
|
|
|
|
loginPage.signUp(roles.owner.credentials); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const createProject = (proj) => { |
|
|
|
|
it(`Create ${proj.basic.name} project`, () => { |
|
|
|
|
|
|
|
|
|
function cy_createProjectBlock(proj) { |
|
|
|
|
// click home button
|
|
|
|
|
cy.get(".nc-noco-brand-icon").click(); |
|
|
|
|
cy.get(".ant-table-content").then((obj) => { |
|
|
|
@ -238,11 +236,20 @@ export const genTest = (apiType, dbType) => {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// hack to disable dark mode
|
|
|
|
|
cy.fileHook(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const createProject = (proj) => { |
|
|
|
|
it(`Create ${proj.basic.name} project`, () => { |
|
|
|
|
if(dbType === "postgres") { |
|
|
|
|
// wait for docker compose to start
|
|
|
|
|
cy.task( |
|
|
|
|
'pgExecTest', |
|
|
|
|
`SELECT 1+1`, {timeout: 120000} |
|
|
|
|
).then(() => cy_createProjectBlock(proj)); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
cy_createProjectBlock(proj); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -251,7 +258,7 @@ export const genTest = (apiType, dbType) => {
|
|
|
|
|
} else if (dbType === "mysql") { |
|
|
|
|
createProject(staticProjects.externalREST); |
|
|
|
|
} else if (dbType === "postgres") { |
|
|
|
|
createProject(staticProjects.pgExternalREST); |
|
|
|
|
createProject(staticProjects.externalREST); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|