mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-27 21:45:01 +00:00
test(cypress): WIP- support for xcdb test suite
Signed-off-by: Raju Udava <sivadstala@gmail.com>
This commit is contained in:
@@ -147,6 +147,7 @@ export const isSecondarySuite = (proj, xcdb) => {
|
||||
};
|
||||
|
||||
let currentTestMode = ``;
|
||||
let xcdbProjectString = ``;
|
||||
export function setCurrentMode(proj, xcdb) {
|
||||
if (!xcdb) {
|
||||
if (proj == "rest") currentTestMode = "extREST";
|
||||
@@ -162,7 +163,15 @@ export function getCurrentMode() {
|
||||
}
|
||||
|
||||
export function isXcdb() {
|
||||
if (currentTestMode === 'xcdbREST' || currentTestMode === 'xcdbGQL')
|
||||
if (currentTestMode === "xcdbREST" || currentTestMode === "xcdbGQL")
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
export function setProjectString(projStr) {
|
||||
xcdbProjectString = projStr;
|
||||
}
|
||||
|
||||
export function getProjectString() {
|
||||
return xcdbProjectString;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user