From 0a4165567e131baaf96f8e447debfe25d0cefc29 Mon Sep 17 00:00:00 2001 From: "Loughnane, Gary" Date: Fri, 17 Oct 2025 08:48:23 -0700 Subject: [PATCH 1/2] Remove refs to old pw --- tests/cypress/support/utilities.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/cypress/support/utilities.ts b/tests/cypress/support/utilities.ts index 450a9f559..32f6ae446 100644 --- a/tests/cypress/support/utilities.ts +++ b/tests/cypress/support/utilities.ts @@ -9,8 +9,10 @@ export interface IUser { password: string; } -const password = process.env.ORCH_DEFAULT_PASSWORD || "ChangeMeOn1stLogin!"; -// Cypress.env("ORCH_DEFAULT_PASSWORD") +const password = process.env.ORCH_DEFAULT_PASSWORD as string | undefined; +if (!password) { + throw new Error("ORCH_DEFAULT_PASSWORD environment variable must be set"); +} export const ADMIN_USER: IUser = { username: "sample-org-admin", From 5dfc111b01a9f0a9417f62b0024f63c718d2c505 Mon Sep 17 00:00:00 2001 From: "Chandrasekharan, Vignesh" Date: Thu, 6 Nov 2025 11:10:19 +0530 Subject: [PATCH 2/2] use Cypress.env --- tests/cypress/support/utilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cypress/support/utilities.ts b/tests/cypress/support/utilities.ts index 32f6ae446..e4c4aeffe 100644 --- a/tests/cypress/support/utilities.ts +++ b/tests/cypress/support/utilities.ts @@ -9,7 +9,7 @@ export interface IUser { password: string; } -const password = process.env.ORCH_DEFAULT_PASSWORD as string | undefined; +const password = Cypress.env("ORCH_DEFAULT_PASSWORD") as string | undefined; if (!password) { throw new Error("ORCH_DEFAULT_PASSWORD environment variable must be set"); }