mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 12:56:40 +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:
@@ -2,26 +2,26 @@ import { loginPage } from "../../support/page_objects/navigation";
|
||||
import { isTestSuiteActive } from "../../support/page_objects/projectConstants";
|
||||
|
||||
export const genTest = (apiType, dbType) => {
|
||||
if (!isTestSuiteActive(apiType, dbType)) return;
|
||||
// if (!isTestSuiteActive(apiType, dbType)) return;
|
||||
|
||||
describe(`${apiType.toUpperCase()} api - Login & Open project`, () => {
|
||||
// Run once before test- create project (rest/graphql)
|
||||
//
|
||||
before(() => {
|
||||
loginPage.loginAndOpenProject(apiType, dbType);
|
||||
describe(`${apiType.toUpperCase()} api - Login & Open project`, () => {
|
||||
// Run once before test- create project (rest/graphql)
|
||||
//
|
||||
before(() => {
|
||||
loginPage.loginAndOpenProject(apiType, dbType);
|
||||
|
||||
// open a table to work on views
|
||||
//
|
||||
// cy.openTableTab('City');
|
||||
// open a table to work on views
|
||||
//
|
||||
// cy.openTableTab('City');
|
||||
});
|
||||
|
||||
it(``, () => {
|
||||
cy.log("Test-1");
|
||||
});
|
||||
});
|
||||
|
||||
it(``, () => {
|
||||
cy.log("Test-1");
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// genTest('rest', false)
|
||||
// genTest("rest", "mysql");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
|
||||
Reference in New Issue
Block a user