From f8882f193e37d308ae36ba9b233fd05ff60dd7e5 Mon Sep 17 00:00:00 2001 From: Krupa Pammi Date: Thu, 2 May 2024 11:44:33 +0100 Subject: [PATCH] Refactor playwright tests --- .../playwright-local.config.js | 2 +- .../tests}/submit/addressValidation.spec.js | 0 {e2e => playwright-local/tests}/submit/formValidation.spec.js | 0 .../tests}/submit/internationalAddressesValidation.spec.js | 0 .../tests}/submit/marketingPreferencesValidation.spec.js | 0 {e2e => playwright-local/tests}/submit/postcodeLookup.spec.js | 0 .../tests}/submit/validFormSubmission.spec.js | 0 {e2e => playwright-local/tests}/update/formValidation.spec.js | 0 .../tests}/update/internationalAddressesValidation.spec.js | 0 .../tests}/update/validFormSubmission.spec.js | 0 {e2e => playwright-local/tests}/utils/commands.js | 0 11 files changed, 1 insertion(+), 1 deletion(-) rename playwright.config.js => playwright-local/playwright-local.config.js (98%) rename {e2e => playwright-local/tests}/submit/addressValidation.spec.js (100%) rename {e2e => playwright-local/tests}/submit/formValidation.spec.js (100%) rename {e2e => playwright-local/tests}/submit/internationalAddressesValidation.spec.js (100%) rename {e2e => playwright-local/tests}/submit/marketingPreferencesValidation.spec.js (100%) rename {e2e => playwright-local/tests}/submit/postcodeLookup.spec.js (100%) rename {e2e => playwright-local/tests}/submit/validFormSubmission.spec.js (100%) rename {e2e => playwright-local/tests}/update/formValidation.spec.js (100%) rename {e2e => playwright-local/tests}/update/internationalAddressesValidation.spec.js (100%) rename {e2e => playwright-local/tests}/update/validFormSubmission.spec.js (100%) rename {e2e => playwright-local/tests}/utils/commands.js (100%) diff --git a/playwright.config.js b/playwright-local/playwright-local.config.js similarity index 98% rename from playwright.config.js rename to playwright-local/playwright-local.config.js index 40c59043..3900fbf0 100644 --- a/playwright.config.js +++ b/playwright-local/playwright-local.config.js @@ -11,7 +11,7 @@ require('dotenv').config(); * @see https://playwright.dev/docs/test-configuration */ module.exports = defineConfig({ - testDir: './e2e', + testDir: '.', /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, retries: 1, diff --git a/e2e/submit/addressValidation.spec.js b/playwright-local/tests/submit/addressValidation.spec.js similarity index 100% rename from e2e/submit/addressValidation.spec.js rename to playwright-local/tests/submit/addressValidation.spec.js diff --git a/e2e/submit/formValidation.spec.js b/playwright-local/tests/submit/formValidation.spec.js similarity index 100% rename from e2e/submit/formValidation.spec.js rename to playwright-local/tests/submit/formValidation.spec.js diff --git a/e2e/submit/internationalAddressesValidation.spec.js b/playwright-local/tests/submit/internationalAddressesValidation.spec.js similarity index 100% rename from e2e/submit/internationalAddressesValidation.spec.js rename to playwright-local/tests/submit/internationalAddressesValidation.spec.js diff --git a/e2e/submit/marketingPreferencesValidation.spec.js b/playwright-local/tests/submit/marketingPreferencesValidation.spec.js similarity index 100% rename from e2e/submit/marketingPreferencesValidation.spec.js rename to playwright-local/tests/submit/marketingPreferencesValidation.spec.js diff --git a/e2e/submit/postcodeLookup.spec.js b/playwright-local/tests/submit/postcodeLookup.spec.js similarity index 100% rename from e2e/submit/postcodeLookup.spec.js rename to playwright-local/tests/submit/postcodeLookup.spec.js diff --git a/e2e/submit/validFormSubmission.spec.js b/playwright-local/tests/submit/validFormSubmission.spec.js similarity index 100% rename from e2e/submit/validFormSubmission.spec.js rename to playwright-local/tests/submit/validFormSubmission.spec.js diff --git a/e2e/update/formValidation.spec.js b/playwright-local/tests/update/formValidation.spec.js similarity index 100% rename from e2e/update/formValidation.spec.js rename to playwright-local/tests/update/formValidation.spec.js diff --git a/e2e/update/internationalAddressesValidation.spec.js b/playwright-local/tests/update/internationalAddressesValidation.spec.js similarity index 100% rename from e2e/update/internationalAddressesValidation.spec.js rename to playwright-local/tests/update/internationalAddressesValidation.spec.js diff --git a/e2e/update/validFormSubmission.spec.js b/playwright-local/tests/update/validFormSubmission.spec.js similarity index 100% rename from e2e/update/validFormSubmission.spec.js rename to playwright-local/tests/update/validFormSubmission.spec.js diff --git a/e2e/utils/commands.js b/playwright-local/tests/utils/commands.js similarity index 100% rename from e2e/utils/commands.js rename to playwright-local/tests/utils/commands.js