mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 20:26:49 +00:00
refactor: test/cypress variable clean-up
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user