From 53154b2cc382dad709d5a778b7eeead4f7f5887e Mon Sep 17 00:00:00 2001 From: balibabu Date: Thu, 16 Apr 2026 12:08:44 +0800 Subject: [PATCH] Feat: Add a title prefix to the testid on the login page. (#14129) ### What problem does this PR solve? Feat: Add a title prefix to the testid on the login page. ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- web/src/pages/login-next/index.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/web/src/pages/login-next/index.tsx b/web/src/pages/login-next/index.tsx index 4a65b58412..a74afab5d0 100644 --- a/web/src/pages/login-next/index.tsx +++ b/web/src/pages/login-next/index.tsx @@ -61,6 +61,7 @@ function LoginFormContent({ }: LoginFormContentProps) { const face = useContext(FlipFaceContext); const isActiveFace = isLoginPage ? face === 'front' : face === 'back'; + const testId = (id: string) => `${title}-auth-${id}`; return (
@@ -74,7 +75,7 @@ function LoginFormContent({
@@ -86,7 +87,7 @@ function LoginFormContent({ {t('emailLabel')} {t('nicknameLabel')}
)} {t('signInTip')}