mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 01:45:59 +00:00
chore: move cypress-v2 to cypress
This commit is contained in:
59
scripts/cypress/integration/test/explicitLogin.js
Normal file
59
scripts/cypress/integration/test/explicitLogin.js
Normal file
@@ -0,0 +1,59 @@
|
||||
import { loginPage } from "../../support/page_objects/navigation";
|
||||
import { isTestSuiteActive } from "../../support/page_objects/projectConstants";
|
||||
|
||||
export const genTest = (apiType, dbType) => {
|
||||
// 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);
|
||||
// open a table to work on views
|
||||
// cy.openTableTab('City');
|
||||
});
|
||||
|
||||
it(``, () => {
|
||||
cy.log("Test-1");
|
||||
|
||||
let projId = "";
|
||||
let query = `SELECT prefix from nc_projects_v2 where title = "sampleREST"; `;
|
||||
cy.task("sqliteExecReturnValue", query)
|
||||
.then((resolve) => {
|
||||
cy.log(resolve);
|
||||
projId = resolve.prefix.split("_")[1];
|
||||
cy.log(projId);
|
||||
})
|
||||
.then(() => {
|
||||
let query = `ALTER TABLE "actor" RENAME TO "${projId}actor"`;
|
||||
cy.task("sqliteExec", query);
|
||||
cy.wait(1000);
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// genTest("rest", "mysql");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Pranav C Balan <pranavxc@gmail.com>
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
58
scripts/cypress/integration/test/pg-restMisc.js
Normal file
58
scripts/cypress/integration/test/pg-restMisc.js
Normal file
@@ -0,0 +1,58 @@
|
||||
let t0 = require("./explicitLogin");
|
||||
let t01 = require("../common/00_pre_configurations");
|
||||
let t6b = require("../common/6b_downloadCsv");
|
||||
let t6c = require("../common/6c_swagger_api");
|
||||
let t6d = require("../common/6d_language_validation");
|
||||
let t6e = require("../common/6e_project_operations");
|
||||
let t6f = require("../common/6f_attachments");
|
||||
let t6g = require("../common/6g_base_share");
|
||||
let t7a = require("../common/7a_create_project_from_excel");
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
const t8a = require("../common/8a_webhook");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
t01.genTest(apiType, dbType);
|
||||
|
||||
t6b.genTest(apiType, dbType);
|
||||
t6d.genTest(apiType, dbType);
|
||||
// exclude@ncv2 t6c.genTest(apiType, dbType);
|
||||
t6f.genTest(apiType, dbType);
|
||||
t6g.genTest(apiType, dbType);
|
||||
|
||||
// webhook tests
|
||||
t8a.genTest(apiType, dbType)
|
||||
|
||||
// **deletes created project, hence place it @ end
|
||||
t6e.genTest(apiType, dbType);
|
||||
|
||||
// intended to keep this after earlier project deletion
|
||||
// creates project using excel & deletes it
|
||||
t7a.genTest(apiType, dbType);
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "postgres");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
39
scripts/cypress/integration/test/pg-restRoles.js
Normal file
39
scripts/cypress/integration/test/pg-restRoles.js
Normal file
@@ -0,0 +1,39 @@
|
||||
let t0 = require("./explicitLogin");
|
||||
let t01 = require("../common/00_pre_configurations");
|
||||
let t5a = require("../common/5a_user_role");
|
||||
let t5b = require("../common/5b_preview_role");
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
t01.genTest(apiType, dbType);
|
||||
|
||||
t5a.genTest(apiType, dbType);
|
||||
// t5b.genTest(apiType, dbType);
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "postgres");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
60
scripts/cypress/integration/test/pg-restTableOps.js
Normal file
60
scripts/cypress/integration/test/pg-restTableOps.js
Normal file
@@ -0,0 +1,60 @@
|
||||
let t0 = require("./explicitLogin");
|
||||
let t01 = require("../common/00_pre_configurations");
|
||||
let t1a = require("../common/1a_table_operations");
|
||||
let t1b = require("../common/1b_table_column_operations");
|
||||
let t1c = require("../common/1c_sql_view");
|
||||
let t1d = require("../common/1d_pg_table_view_drag_drop_reorder");
|
||||
let t1e = require("../common/1e_pg_meta_sync");
|
||||
let t2a = require("../common/2a_table_with_belongs_to_colulmn");
|
||||
let t2b = require("../common/2b_table_with_m2m_column");
|
||||
let t3a = require("../common/3a_filter_sort_fields_operations");
|
||||
let t3b = require("../common/3b_formula_column");
|
||||
let t3c = require("../common/3c_lookup_column");
|
||||
let t3d = require("../common/3d_rollup_column");
|
||||
let t3e = require("../common/3e_duration_column");
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
t01.genTest(apiType, dbType);
|
||||
|
||||
t1a.genTest(apiType, dbType);
|
||||
t1b.genTest(apiType, dbType);
|
||||
t1c.genTest(apiType, dbType);
|
||||
// NcGUI v2 t1d.genTest(apiType, dbType);
|
||||
t1e.genTest(apiType, dbType);
|
||||
t2a.genTest(apiType, dbType);
|
||||
t2b.genTest(apiType, dbType);
|
||||
t3a.genTest(apiType, dbType);
|
||||
t3b.genTest(apiType, dbType);
|
||||
t3c.genTest(apiType, dbType);
|
||||
t3d.genTest(apiType, dbType);
|
||||
// NcGUI v2 t3e.genTest(apiType, dbType);
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "postgres");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
* @author Wing-Kam Wong <wingkwong.code@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
48
scripts/cypress/integration/test/pg-restViews.js
Normal file
48
scripts/cypress/integration/test/pg-restViews.js
Normal file
@@ -0,0 +1,48 @@
|
||||
let t0 = require("./explicitLogin");
|
||||
let t01 = require("../common/00_pre_configurations");
|
||||
let t4a = require("../common/4a_table_view_grid_gallery_form");
|
||||
let t4b = require("../common/4b_table_view_share");
|
||||
let t4c = require("../common/4c_form_view_detailed");
|
||||
let t4d = require("../common/4d_table_view_grid_locked");
|
||||
let t4e = require("../common/4e_form_view_share");
|
||||
let t4f = require("../common/4f_pg_grid_view_share");
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
t01.genTest(apiType, dbType);
|
||||
|
||||
// place plugin related activities at top
|
||||
t4c.genTest(apiType, dbType);
|
||||
t4a.genTest(apiType, dbType);
|
||||
t4b.genTest(apiType, dbType);
|
||||
t4d.genTest(apiType, dbType);
|
||||
t4e.genTest(apiType, dbType);
|
||||
// tbd t4f.genTest(apiType, dbType);
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "postgres");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
39
scripts/cypress/integration/test/quickTest.js
Normal file
39
scripts/cypress/integration/test/quickTest.js
Normal file
@@ -0,0 +1,39 @@
|
||||
let t7b = require("../common/7b_import_from_airtable");
|
||||
let t9a = require("../common/9a_QuickTest");
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
// CY Migration verification / Quick test
|
||||
t9a.genTest(apiType, dbType, "CY_QUICK");
|
||||
|
||||
// AT Import verification
|
||||
t7b.genTest(apiType, dbType)
|
||||
t9a.genTest(apiType, dbType, "AT_IMPORT");
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "xcdb");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
58
scripts/cypress/integration/test/restMisc.js
Normal file
58
scripts/cypress/integration/test/restMisc.js
Normal file
@@ -0,0 +1,58 @@
|
||||
let t0 = require("./explicitLogin");
|
||||
let t01 = require("../common/00_pre_configurations");
|
||||
let t6b = require("../common/6b_downloadCsv");
|
||||
let t6c = require("../common/6c_swagger_api");
|
||||
let t6d = require("../common/6d_language_validation");
|
||||
let t6e = require("../common/6e_project_operations");
|
||||
let t6f = require("../common/6f_attachments");
|
||||
let t6g = require("../common/6g_base_share");
|
||||
let t7a = require("../common/7a_create_project_from_excel");
|
||||
let t8a = require("../common/8a_webhook")
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
t01.genTest(apiType, dbType);
|
||||
|
||||
t6b.genTest(apiType, dbType);
|
||||
t6d.genTest(apiType, dbType);
|
||||
// exclude@ncv2 t6c.genTest(apiType, dbType);
|
||||
t6f.genTest(apiType, dbType);
|
||||
t6g.genTest(apiType, dbType);
|
||||
|
||||
// webhook tests
|
||||
t8a.genTest(apiType, dbType)
|
||||
|
||||
// **deletes created project, hence place it @ end
|
||||
t6e.genTest(apiType, dbType);
|
||||
|
||||
// intended to keep this after earlier project deletion
|
||||
// creates project using excel & deletes it
|
||||
t7a.genTest(apiType, dbType);
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "mysql");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
39
scripts/cypress/integration/test/restRoles.js
Normal file
39
scripts/cypress/integration/test/restRoles.js
Normal file
@@ -0,0 +1,39 @@
|
||||
let t0 = require("./explicitLogin");
|
||||
let t01 = require("../common/00_pre_configurations");
|
||||
let t5a = require("../common/5a_user_role");
|
||||
let t5b = require("../common/5b_preview_role");
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
t01.genTest(apiType, dbType);
|
||||
|
||||
t5a.genTest(apiType, dbType);
|
||||
// t5b.genTest(apiType, dbType);
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "mysql");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
60
scripts/cypress/integration/test/restTableOps.js
Normal file
60
scripts/cypress/integration/test/restTableOps.js
Normal file
@@ -0,0 +1,60 @@
|
||||
|
||||
let t01 = require("../common/00_pre_configurations");
|
||||
let t1a = require("../common/1a_table_operations");
|
||||
let t1b = require("../common/1b_table_column_operations");
|
||||
let t1c = require("../common/1c_sql_view");
|
||||
let t1d = require("../common/1d_table_view_drag_drop_reorder");
|
||||
let t1e = require("../common/1e_meta_sync");
|
||||
let t2a = require("../common/2a_table_with_belongs_to_colulmn");
|
||||
let t2b = require("../common/2b_table_with_m2m_column");
|
||||
let t3a = require("../common/3a_filter_sort_fields_operations");
|
||||
let t3b = require("../common/3b_formula_column");
|
||||
let t3c = require("../common/3c_lookup_column");
|
||||
let t3d = require("../common/3d_rollup_column");
|
||||
let t3e = require("../common/3e_duration_column");
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
t01.genTest(apiType, dbType);
|
||||
|
||||
t1a.genTest(apiType, dbType);
|
||||
t1b.genTest(apiType, dbType);
|
||||
t1c.genTest(apiType, dbType);
|
||||
// NcGUI v2 t1d.genTest(apiType, dbType);
|
||||
t1e.genTest(apiType, dbType);
|
||||
t2a.genTest(apiType, dbType);
|
||||
t2b.genTest(apiType, dbType);
|
||||
t3a.genTest(apiType, dbType);
|
||||
t3b.genTest(apiType, dbType);
|
||||
t3c.genTest(apiType, dbType);
|
||||
t3d.genTest(apiType, dbType);
|
||||
// NcGUI v2 t3e.genTest(apiType, dbType);
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "mysql");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
* @author Wing-Kam Wong <wingkwong.code@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
48
scripts/cypress/integration/test/restViews.js
Normal file
48
scripts/cypress/integration/test/restViews.js
Normal file
@@ -0,0 +1,48 @@
|
||||
let t0 = require("./explicitLogin");
|
||||
let t01 = require("../common/00_pre_configurations");
|
||||
let t4a = require("../common/4a_table_view_grid_gallery_form");
|
||||
let t4b = require("../common/4b_table_view_share");
|
||||
let t4c = require("../common/4c_form_view_detailed");
|
||||
let t4d = require("../common/4d_table_view_grid_locked");
|
||||
let t4e = require("../common/4e_form_view_share");
|
||||
let t4f = require("../common/4f_grid_view_share");
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
t01.genTest(apiType, dbType);
|
||||
|
||||
// place plugin related activities at top
|
||||
t4c.genTest(apiType, dbType);
|
||||
t4a.genTest(apiType, dbType);
|
||||
t4b.genTest(apiType, dbType);
|
||||
t4d.genTest(apiType, dbType);
|
||||
t4e.genTest(apiType, dbType);
|
||||
t4f.genTest(apiType, dbType);
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "mysql");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
59
scripts/cypress/integration/test/xcdb-restMisc.js
Normal file
59
scripts/cypress/integration/test/xcdb-restMisc.js
Normal file
@@ -0,0 +1,59 @@
|
||||
let t0 = require("./explicitLogin");
|
||||
let t01 = require("../common/00_pre_configurations");
|
||||
let t6b = require("../common/6b_downloadCsv");
|
||||
let t6c = require("../common/6c_swagger_api");
|
||||
let t6d = require("../common/6d_language_validation");
|
||||
let t6e = require("../common/6e_project_operations");
|
||||
let t6f = require("../common/6f_attachments");
|
||||
let t6g = require("../common/6g_base_share");
|
||||
let t7a = require("../common/7a_create_project_from_excel");
|
||||
let t8a = require("../common/8a_webhook")
|
||||
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
t01.genTest(apiType, dbType);
|
||||
|
||||
t6b.genTest(apiType, dbType);
|
||||
t6d.genTest(apiType, dbType);
|
||||
// exclude@ncv2 t6c.genTest(apiType, dbType);
|
||||
t6f.genTest(apiType, dbType);
|
||||
t6g.genTest(apiType, dbType);
|
||||
|
||||
// webhook tests
|
||||
t8a.genTest(apiType, dbType)
|
||||
|
||||
// **deletes created project, hence place it @ end
|
||||
t6e.genTest(apiType, dbType);
|
||||
|
||||
// intended to keep this after earlier project deletion
|
||||
// creates project using excel & deletes it
|
||||
t7a.genTest(apiType, dbType);
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "xcdb");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
39
scripts/cypress/integration/test/xcdb-restRoles.js
Normal file
39
scripts/cypress/integration/test/xcdb-restRoles.js
Normal file
@@ -0,0 +1,39 @@
|
||||
let t0 = require("./explicitLogin");
|
||||
let t01 = require("../common/00_pre_configurations");
|
||||
let t5a = require("../common/5a_user_role");
|
||||
let t5b = require("../common/5b_preview_role");
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
t01.genTest(apiType, dbType);
|
||||
|
||||
t5a.genTest(apiType, dbType);
|
||||
// t5b.genTest(apiType, dbType);
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "xcdb");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
59
scripts/cypress/integration/test/xcdb-restTableOps.js
Normal file
59
scripts/cypress/integration/test/xcdb-restTableOps.js
Normal file
@@ -0,0 +1,59 @@
|
||||
let t01 = require("../common/00_pre_configurations");
|
||||
let t1a = require("../common/1a_table_operations");
|
||||
let t1b = require("../common/1b_table_column_operations");
|
||||
let t1c = require("../common/1c_sql_view");
|
||||
let t1d = require("../common/1d_table_view_drag_drop_reorder");
|
||||
let t1e = require("../common/1e_meta_sync");
|
||||
let t2a = require("../common/2a_table_with_belongs_to_colulmn");
|
||||
let t2b = require("../common/2b_table_with_m2m_column");
|
||||
let t3a = require("../common/3a_filter_sort_fields_operations");
|
||||
let t3b = require("../common/3b_formula_column");
|
||||
let t3c = require("../common/3c_lookup_column");
|
||||
let t3d = require("../common/3d_rollup_column");
|
||||
let t3e = require("../common/3e_duration_column");
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
t01.genTest(apiType, dbType);
|
||||
|
||||
t1a.genTest(apiType, dbType);
|
||||
t1b.genTest(apiType, dbType);
|
||||
t1c.genTest(apiType, dbType);
|
||||
// NcGUI v2 t1d.genTest(apiType, dbType);
|
||||
t1e.genTest(apiType, dbType);
|
||||
t2a.genTest(apiType, dbType);
|
||||
t2b.genTest(apiType, dbType);
|
||||
t3a.genTest(apiType, dbType);
|
||||
t3b.genTest(apiType, dbType);
|
||||
t3c.genTest(apiType, dbType);
|
||||
t3d.genTest(apiType, dbType);
|
||||
// NcGUI v2 t3e.genTest(apiType, dbType);
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "xcdb");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
* @author Wing-Kam Wong <wingkwong.code@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
48
scripts/cypress/integration/test/xcdb-restViews.js
Normal file
48
scripts/cypress/integration/test/xcdb-restViews.js
Normal file
@@ -0,0 +1,48 @@
|
||||
let t0 = require("./explicitLogin");
|
||||
let t01 = require("../common/00_pre_configurations");
|
||||
let t4a = require("../common/4a_table_view_grid_gallery_form");
|
||||
let t4b = require("../common/4b_table_view_share");
|
||||
let t4c = require("../common/4c_form_view_detailed");
|
||||
let t4d = require("../common/4d_table_view_grid_locked");
|
||||
let t4e = require("../common/4e_form_view_share");
|
||||
let t4f = require("../common/4f_grid_view_share");
|
||||
const {
|
||||
setCurrentMode,
|
||||
} = require("../../support/page_objects/projectConstants");
|
||||
|
||||
const nocoTestSuite = (apiType, dbType) => {
|
||||
setCurrentMode(apiType, dbType);
|
||||
t01.genTest(apiType, dbType);
|
||||
|
||||
// place plugin related activities at top
|
||||
t4c.genTest(apiType, dbType);
|
||||
t4a.genTest(apiType, dbType);
|
||||
t4b.genTest(apiType, dbType);
|
||||
t4d.genTest(apiType, dbType);
|
||||
// to be fixed t4e.genTest(apiType, dbType);
|
||||
t4f.genTest(apiType, dbType);
|
||||
};
|
||||
|
||||
nocoTestSuite("rest", "xcdb");
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
* @author Raju Udava <sivadstala@gmail.com>
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
Reference in New Issue
Block a user