test(cypress): WIP- support for xcdb test suite

Signed-off-by: Raju Udava <sivadstala@gmail.com>
This commit is contained in:
Raju Udava
2021-12-30 10:50:57 +05:30
parent c86c6db8cd
commit 5796a80b5c
24 changed files with 259 additions and 91 deletions

View File

@@ -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;
}