refactor: test/cypress variable clean-up

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Raju Udava
2022-02-12 13:59:38 +05:30
parent 8847ce43fa
commit 916dcf46fa
45 changed files with 314 additions and 314 deletions

View File

@@ -63,8 +63,8 @@ let UrlFileExpectedData = {
// 12: ['dateTime', 'DateTime']
// }
export const genTest = (type, xcdb) => {
if (!isTestSuiteActive(type, xcdb)) return;
export const genTest = (apiType, dbType) => {
if (!isTestSuiteActive(apiType, dbType)) return;
describe(`Import from excel`, () => {
before(() => {
@@ -198,7 +198,7 @@ export const genTest = (type, xcdb) => {
// delete project once all operations are completed
mainPage.toolBarTopLeft(mainPage.HOME).click();
cy.get(`.nc-${type}-project-row .mdi-delete-circle-outline`, {
cy.get(`.nc-${apiType}-project-row .mdi-delete-circle-outline`, {
timeout: 10000,
})
.should("exist")
@@ -307,7 +307,7 @@ export const genTest = (type, xcdb) => {
after(() => {
// delete project once all operations are completed
mainPage.toolBarTopLeft(mainPage.HOME).click();
cy.get(`.nc-${type}-project-row .mdi-delete-circle-outline`, {
cy.get(`.nc-${apiType}-project-row .mdi-delete-circle-outline`, {
timeout: 10000,
})
.should("exist")