Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Migrate to cypress 10

Michael Shamoonef48762da560
diff --git a/src-ui/cypress.config.ts b/src-ui/cypress.config.ts
new file mode 100644
index 000000000..1be27d63e
--- /dev/null
+++ b/src-ui/cypress.config.ts
@@ -0,0 +1,13 @@
+import { defineConfig } from 'cypress'
+
+export default defineConfig({
+ videosFolder: 'cypress/videos',
+ screenshotsFolder: 'cypress/screenshots',
+ fixturesFolder: 'cypress/fixtures',
+ e2e: {
+ setupNodeEvents(on, config) {
+ return require('./cypress/plugins/index.ts')(on, config)
+ },
+ baseUrl: 'http://localhost:4200',
+ },
+})
diff --git a/src-ui/cypress.json b/src-ui/cypress.json
deleted file mode 100644
index 3a58fab3f..000000000
--- a/src-ui/cypress.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "integrationFolder": "cypress/integration",
- "supportFile": "cypress/support/index.ts",
- "videosFolder": "cypress/videos",
- "screenshotsFolder": "cypress/screenshots",
- "pluginsFile": "cypress/plugins/index.ts",
- "fixturesFolder": "cypress/fixtures",
- "baseUrl": "http://localhost:4200"
-}
diff --git a/src-ui/cypress/integration/documents/document-detail.spec.ts b/src-ui/cypress/e2e/documents/document-detail.cy.ts
similarity index 100%
rename from src-ui/cypress/integration/documents/document-detail.spec.ts
rename to src-ui/cypress/e2e/documents/document-detail.cy.ts
diff --git a/src-ui/cypress/integration/documents/documents-list.spec.ts b/src-ui/cypress/e2e/documents/documents-list.cy.ts
similarity index 100%
rename from src-ui/cypress/integration/documents/documents-list.spec.ts
rename to src-ui/cypress/e2e/documents/documents-list.cy.ts
diff --git a/src-ui/cypress/integration/documents/query-params.spec.ts b/src-ui/cypress/e2e/documents/query-params.cy.ts
similarity index 100%
rename from src-ui/cypress/integration/documents/query-params.spec.ts
rename to src-ui/cypress/e2e/documents/query-params.cy.ts
diff --git a/src-ui/cypress/integration/manage/manage.spec.ts b/src-ui/cypress/e2e/manage/manage.cy.ts
similarity index 100%
rename from src-ui/cypress/integration/manage/manage.spec.ts
rename to src-ui/cypress/e2e/manage/manage.cy.ts
diff --git a/src-ui/cypress/integration/settings/settings.spec.ts b/src-ui/cypress/e2e/settings/settings.cy.ts
similarity index 100%
rename from src-ui/cypress/integration/settings/settings.spec.ts
rename to src-ui/cypress/e2e/settings/settings.cy.ts
diff --git a/src-ui/cypress/support/index.ts b/src-ui/cypress/support/e2e.ts
similarity index 100%
rename from src-ui/cypress/support/index.ts
rename to src-ui/cypress/support/e2e.ts