mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-28 06:35:11 +00:00
refactor: consistent api's for api/db type
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
@@ -58,11 +58,11 @@ export class _loginPage {
|
||||
loginAndOpenProject(apiType, dbType) {
|
||||
loginPage.signIn(roles.owner.credentials);
|
||||
|
||||
if (!dbType) {
|
||||
if (dbType === "mysql") {
|
||||
if ("rest" == apiType)
|
||||
projectsPage.openProject(staticProjects.externalREST.basic.name);
|
||||
else projectsPage.openProject(staticProjects.externalGQL.basic.name);
|
||||
} else {
|
||||
} else if(dbType === "xcdb") {
|
||||
if ("rest" == apiType)
|
||||
projectsPage.openProject(staticProjects.sampleREST.basic.name);
|
||||
else projectsPage.openProject(staticProjects.sampleGQL.basic.name);
|
||||
|
||||
Reference in New Issue
Block a user