From 012960665e7335ab8aa4e724af99c4698b79dcf6 Mon Sep 17 00:00:00 2001 From: Natheeshkumar Date: Thu, 29 Oct 2026 23:27:24 +0530 Subject: [PATCH] test(e2e): only refuse the public default password on hosted targets Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- test/e2e/steps/helpers/common.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/e2e/steps/helpers/common.ts b/test/e2e/steps/helpers/common.ts index 1e9b4a38..2fcb8cef 100644 --- a/test/e2e/steps/helpers/common.ts +++ b/test/e2e/steps/helpers/common.ts @@ -29,11 +29,13 @@ function isLocalTarget(url: string): boolean { * Exported for unit testing. */ export function assertDefaultCredentialsOnlyLocal( - email: string, + _email: string, password: string, targetUrls: Array ): void { - if (email.toLowerCase() !== PUBLIC_DEFAULT_E2E_EMAIL && password !== PUBLIC_DEFAULT_E2E_EMAIL) { + // Only the public default password is the risk; the shared account's email may be reused + // on hosted targets as long as it has a private password there. + if (password !== PUBLIC_DEFAULT_E2E_EMAIL) { return; } const remote = targetUrls.find((url) => url && !isLocalTarget(url));