From 477de791a93bed3781312dfa4aa2e9ba5dec1dc9 Mon Sep 17 00:00:00 2001 From: StylusFrost Date: Fri, 24 Oct 2025 13:15:18 +0200 Subject: [PATCH] test(ui): update environment variable name for user password in sign-up tests - Changed the environment variable name from 'E2E_NEW_PASSWORD' to 'E2E_NEW_USER_PASSWORD' in the UI E2E tests workflow and related documentation. - This update ensures consistency across the test setup and improves clarity in the sign-up flow tests. --- .github/workflows/ui-e2e-tests.yml | 2 +- ui/tests/sign-up/sign-up.md | 4 ++-- ui/tests/sign-up/sign-up.spec.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ui-e2e-tests.yml b/.github/workflows/ui-e2e-tests.yml index 2fb825f8fa..87be96808d 100644 --- a/.github/workflows/ui-e2e-tests.yml +++ b/.github/workflows/ui-e2e-tests.yml @@ -36,7 +36,7 @@ jobs: E2E_M365_CERTIFICATE_CONTENT: ${{ secrets.E2E_M365_CERTIFICATE_CONTENT }} E2E_KUBERNETES_CONTEXT: 'kind-kind' E2E_KUBERNETES_KUBECONFIG_PATH: /home/runner/.kube/config - E2E_NEW_PASSWORD: ${{ secrets.E2E_NEW_PASSWORD }} + E2E_NEW_USER_PASSWORD: ${{ secrets.E2E_NEW_USER_PASSWORD }} steps: - name: Checkout repository diff --git a/ui/tests/sign-up/sign-up.md b/ui/tests/sign-up/sign-up.md index 1ebff2a7d9..b13dc0e996 100644 --- a/ui/tests/sign-up/sign-up.md +++ b/ui/tests/sign-up/sign-up.md @@ -18,7 +18,7 @@ **Preconditions:** - Application is running, email domain & password is acceptable for sign-up. - No existing data in Prowler is required; the test can run on a clean state. -- `E2E_NEW_PASSWORD` environment variable must be set with a valid password for the test. +- `E2E_NEW_USER_PASSWORD` environment variable must be set with a valid password for the test. ### Flow Steps: 1. Navigate to the Sign up page. @@ -38,6 +38,6 @@ ### Notes: - Test data uses a random base36 suffix to avoid collisions with email. -- The test requires the `E2E_NEW_PASSWORD` environment variable to be set before running. +- The test requires the `E2E_NEW_USER_PASSWORD` environment variable to be set before running. diff --git a/ui/tests/sign-up/sign-up.spec.ts b/ui/tests/sign-up/sign-up.spec.ts index 19d831705c..957f88b00b 100644 --- a/ui/tests/sign-up/sign-up.spec.ts +++ b/ui/tests/sign-up/sign-up.spec.ts @@ -8,10 +8,10 @@ test.describe("Sign Up Flow", () => { "should register a new user successfully", { tag: ["@critical", "@e2e", "@signup", "@SIGNUP-E2E-001"] }, async ({ page }) => { - const password = process.env.E2E_NEW_PASSWORD; + const password = process.env.E2E_NEW_USER_PASSWORD; if (!password) { - throw new Error("E2E_NEW_PASSWORD environment variable is not set"); + throw new Error("E2E_NEW_USER_PASSWORD environment variable is not set"); } const signUpPage = new SignUpPage(page);