From 03f018a47247d91011788ef0a423496d9b02454b Mon Sep 17 00:00:00 2001 From: Jeroen akkerman Date: Wed, 27 Jul 2022 18:35:35 +0200 Subject: [PATCH] Migrate cypress files --- cypress.config.ts | 9 +++++++++ cypress.json | 5 ----- cypress/{integration => e2e}/1-default-editor/index.html | 0 .../1-default-editor/preview.cy.js} | 0 .../1-default-editor/statusbar.cy.js} | 0 .../visual.spec.js => e2e/1-default-editor/visual.cy.js} | 0 cypress/{integration => e2e}/2-url-prompt/index.html | 0 .../2-url-prompt/url-prompt.cy.js} | 0 cypress/support/{index.js => e2e.js} | 0 9 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 cypress.config.ts delete mode 100644 cypress.json rename cypress/{integration => e2e}/1-default-editor/index.html (100%) rename cypress/{integration/1-default-editor/preview.spec.js => e2e/1-default-editor/preview.cy.js} (100%) rename cypress/{integration/1-default-editor/statusbar.spec.js => e2e/1-default-editor/statusbar.cy.js} (100%) rename cypress/{integration/1-default-editor/visual.spec.js => e2e/1-default-editor/visual.cy.js} (100%) rename cypress/{integration => e2e}/2-url-prompt/index.html (100%) rename cypress/{integration/2-url-prompt/url-prompt.spec.js => e2e/2-url-prompt/url-prompt.cy.js} (100%) rename cypress/support/{index.js => e2e.js} (100%) diff --git a/cypress.config.ts b/cypress.config.ts new file mode 100644 index 0000000..e2ff65a --- /dev/null +++ b/cypress.config.ts @@ -0,0 +1,9 @@ +import { defineConfig } from 'cypress'; + +export default defineConfig({ + e2e: { + excludeSpecPattern: [ + '**/*.html', + ], + }, +}); diff --git a/cypress.json b/cypress.json deleted file mode 100644 index 66e828a..0000000 --- a/cypress.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "ignoreTestFiles": [ - "**/*.html" - ] -} diff --git a/cypress/integration/1-default-editor/index.html b/cypress/e2e/1-default-editor/index.html similarity index 100% rename from cypress/integration/1-default-editor/index.html rename to cypress/e2e/1-default-editor/index.html diff --git a/cypress/integration/1-default-editor/preview.spec.js b/cypress/e2e/1-default-editor/preview.cy.js similarity index 100% rename from cypress/integration/1-default-editor/preview.spec.js rename to cypress/e2e/1-default-editor/preview.cy.js diff --git a/cypress/integration/1-default-editor/statusbar.spec.js b/cypress/e2e/1-default-editor/statusbar.cy.js similarity index 100% rename from cypress/integration/1-default-editor/statusbar.spec.js rename to cypress/e2e/1-default-editor/statusbar.cy.js diff --git a/cypress/integration/1-default-editor/visual.spec.js b/cypress/e2e/1-default-editor/visual.cy.js similarity index 100% rename from cypress/integration/1-default-editor/visual.spec.js rename to cypress/e2e/1-default-editor/visual.cy.js diff --git a/cypress/integration/2-url-prompt/index.html b/cypress/e2e/2-url-prompt/index.html similarity index 100% rename from cypress/integration/2-url-prompt/index.html rename to cypress/e2e/2-url-prompt/index.html diff --git a/cypress/integration/2-url-prompt/url-prompt.spec.js b/cypress/e2e/2-url-prompt/url-prompt.cy.js similarity index 100% rename from cypress/integration/2-url-prompt/url-prompt.spec.js rename to cypress/e2e/2-url-prompt/url-prompt.cy.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