diff --git a/cypress.config.ts b/cypress.config.ts new file mode 100644 index 000000000..4b233b3b6 --- /dev/null +++ b/cypress.config.ts @@ -0,0 +1,22 @@ +import { defineConfig } from 'cypress' + +export default defineConfig({ + env: { + API_URL: 'http://localhost:3456/api/v1', + TEST_SECRET: 'averyLongSecretToSe33dtheDB', + }, + video: false, + retries: { + runMode: 2, + }, + projectId: '181c7x', + e2e: { + // We've imported your old cypress plugins here. + // You may want to clean this up later by importing these. + setupNodeEvents(on, config) { + return require('./cypress/plugins/index.js')(on, config) + }, + baseUrl: 'http://localhost:4173', + specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}', + }, +}) diff --git a/cypress.json b/cypress.json deleted file mode 100644 index 48eb6ac59..000000000 --- a/cypress.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "baseUrl": "http://localhost:4173", - "env": { - "API_URL": "http://localhost:3456/api/v1", - "TEST_SECRET": "averyLongSecretToSe33dtheDB" - }, - "video": false, - "retries": { - "runMode": 2 - }, - "projectId": "181c7x" -} diff --git a/cypress/integration/list/list-history.spec.js b/cypress/e2e/list/list-history.spec.js similarity index 100% rename from cypress/integration/list/list-history.spec.js rename to cypress/e2e/list/list-history.spec.js diff --git a/cypress/integration/list/list-view-gantt.spec.js b/cypress/e2e/list/list-view-gantt.spec.js similarity index 100% rename from cypress/integration/list/list-view-gantt.spec.js rename to cypress/e2e/list/list-view-gantt.spec.js diff --git a/cypress/integration/list/list-view-kanban.spec.js b/cypress/e2e/list/list-view-kanban.spec.js similarity index 100% rename from cypress/integration/list/list-view-kanban.spec.js rename to cypress/e2e/list/list-view-kanban.spec.js diff --git a/cypress/integration/list/list-view-list.spec.js b/cypress/e2e/list/list-view-list.spec.js similarity index 100% rename from cypress/integration/list/list-view-list.spec.js rename to cypress/e2e/list/list-view-list.spec.js diff --git a/cypress/integration/list/list-view-table.spec.js b/cypress/e2e/list/list-view-table.spec.js similarity index 100% rename from cypress/integration/list/list-view-table.spec.js rename to cypress/e2e/list/list-view-table.spec.js diff --git a/cypress/integration/list/list.spec.js b/cypress/e2e/list/list.spec.js similarity index 100% rename from cypress/integration/list/list.spec.js rename to cypress/e2e/list/list.spec.js diff --git a/cypress/integration/list/namespaces.spec.js b/cypress/e2e/list/namespaces.spec.js similarity index 100% rename from cypress/integration/list/namespaces.spec.js rename to cypress/e2e/list/namespaces.spec.js diff --git a/cypress/integration/list/prepareLists.js b/cypress/e2e/list/prepareLists.js similarity index 100% rename from cypress/integration/list/prepareLists.js rename to cypress/e2e/list/prepareLists.js diff --git a/cypress/integration/misc/editor.spec.js b/cypress/e2e/misc/editor.spec.js similarity index 100% rename from cypress/integration/misc/editor.spec.js rename to cypress/e2e/misc/editor.spec.js diff --git a/cypress/integration/misc/menu.spec.js b/cypress/e2e/misc/menu.spec.js similarity index 100% rename from cypress/integration/misc/menu.spec.js rename to cypress/e2e/misc/menu.spec.js diff --git a/cypress/integration/sharing/linkShare.spec.js b/cypress/e2e/sharing/linkShare.spec.js similarity index 100% rename from cypress/integration/sharing/linkShare.spec.js rename to cypress/e2e/sharing/linkShare.spec.js diff --git a/cypress/integration/sharing/team.spec.js b/cypress/e2e/sharing/team.spec.js similarity index 100% rename from cypress/integration/sharing/team.spec.js rename to cypress/e2e/sharing/team.spec.js diff --git a/cypress/integration/task/overview.spec.js b/cypress/e2e/task/overview.spec.js similarity index 100% rename from cypress/integration/task/overview.spec.js rename to cypress/e2e/task/overview.spec.js diff --git a/cypress/integration/task/task.spec.js b/cypress/e2e/task/task.spec.js similarity index 100% rename from cypress/integration/task/task.spec.js rename to cypress/e2e/task/task.spec.js diff --git a/cypress/integration/user/login.spec.js b/cypress/e2e/user/login.spec.js similarity index 100% rename from cypress/integration/user/login.spec.js rename to cypress/e2e/user/login.spec.js diff --git a/cypress/integration/user/logout.spec.js b/cypress/e2e/user/logout.spec.js similarity index 100% rename from cypress/integration/user/logout.spec.js rename to cypress/e2e/user/logout.spec.js diff --git a/cypress/integration/user/registration.spec.js b/cypress/e2e/user/registration.spec.js similarity index 100% rename from cypress/integration/user/registration.spec.js rename to cypress/e2e/user/registration.spec.js diff --git a/cypress/integration/user/settings.spec.js b/cypress/e2e/user/settings.spec.js similarity index 100% rename from cypress/integration/user/settings.spec.js rename to cypress/e2e/user/settings.spec.js diff --git a/cypress/support/index.js b/cypress/support/e2e.js similarity index 100% rename from cypress/support/index.js rename to cypress/support/e2e.js diff --git a/package.json b/package.json index 9784dc126..7e190e364 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "axios": "0.27.2", "browserslist": "4.20.4", "caniuse-lite": "1.0.30001341", - "cypress": "9.6.1", + "cypress": "10.0.3", "esbuild": "0.14.43", "eslint": "8.17.0", "eslint-plugin-vue": "9.1.0", diff --git a/yarn.lock b/yarn.lock index fe5be8ba3..a5eb16cd0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4563,10 +4563,10 @@ cyclist@^1.0.1: resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9" integrity sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk= -cypress@9.6.1: - version "9.6.1" - resolved "https://registry.yarnpkg.com/cypress/-/cypress-9.6.1.tgz#a7d6b5a53325b3dc4960181f5800a5ade0f085eb" - integrity sha512-ECzmV7pJSkk+NuAhEw6C3D+RIRATkSb2VAHXDY6qGZbca/F9mv5pPsj2LO6Ty6oIFVBTrwCyL9agl28MtJMe2g== +cypress@10.0.3: + version "10.0.3" + resolved "https://registry.yarnpkg.com/cypress/-/cypress-10.0.3.tgz#889b4bef863b7d1ef1b608b85b964394ad350c5f" + integrity sha512-8C82XTybsEmJC9POYSNITGUhMLCRwB9LadP0x33H+52QVoBjhsWvIzrI+ybCe0+TyxaF0D5/9IL2kSTgjqCB9A== dependencies: "@cypress/request" "^2.88.10" "@cypress/xvfb" "^1.2.4"