From be131d7dfe33909977107ade30a8450c1309f7b8 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 16 Nov 2021 15:18:04 +0530 Subject: [PATCH] test(cypress): provide delay to sync view metas Signed-off-by: Pranav C --- package-lock.json | 9 +++++++++ package.json | 3 ++- .../spreadsheet/components/spreadsheetNavDrawer.vue | 10 +++++++--- .../project/spreadsheet/public/xcForm.vue | 13 ------------- .../cypress/integration/common/6f_attachments.js | 2 +- 5 files changed, 19 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8447c4d58d..09b183335f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3570,6 +3570,15 @@ "parse-json": "^4.0.0" } }, + "cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.1" + } + }, "cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", diff --git a/package.json b/package.json index 20b09f1a75..f71b7fe693 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,14 @@ "name": "root", "devDependencies": { "@4tw/cypress-drag-drop": "^2.0.0", + "cross-env": "^7.0.3", "cypress": "^7.3.0", "cypress-file-upload": "^5.0.8", "jsdoc-to-markdown": "^5.0.3", "lerna": "^3.20.1" }, "scripts": { - "start:api": "cd ./packages/nocodb; npm install; npm run watch:run", + "start:api": "cd ./packages/nocodb; npm install; cross-env NC_DISABLE_TELE=true npm run watch:run", "start:web": "cd ./packages/nc-gui; npm install; npm run dev", "cypress:run": "cypress run --config-file ./scripts/cypress/cypress.json", "cypress:open": "cypress open --config-file ./scripts/cypress/cypress.json", diff --git a/packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue b/packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue index c8687d400e..75b8476e8f 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue @@ -436,7 +436,7 @@