mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-28 22:40:59 +00:00
test(cypress): xcdb pre-configurations
Signed-off-by: Raju Udava <sivadstala@gmail.com>
This commit is contained in:
@@ -145,3 +145,24 @@ export const isSecondarySuite = (proj, xcdb) => {
|
||||
return proj == "graphql" && xcdb ? false : true;
|
||||
}
|
||||
};
|
||||
|
||||
let currentTestMode = ``;
|
||||
export function setCurrentMode(proj, xcdb) {
|
||||
if (!xcdb) {
|
||||
if (proj == "rest") currentTestMode = "extREST";
|
||||
else currentTestMode = "extGQL";
|
||||
} else {
|
||||
if (proj == "rest") currentTestMode = "xcdbREST";
|
||||
else currentTestMode = "xcdbGQL";
|
||||
}
|
||||
}
|
||||
|
||||
export function getCurrentMode() {
|
||||
return currentTestMode;
|
||||
}
|
||||
|
||||
export function isXcdb() {
|
||||
if (currentTestMode === 'xcdbREST' || currentTestMode === 'xcdbGQL')
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user