From f7fc03cdc943da8d2fc482ba01214db6798031bd Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Tue, 2 May 2023 18:05:13 +0100 Subject: [PATCH] Initial cut of required tags for registration and login flows. --- src/auth/LoginPage.tsx | 8 +++++++- src/auth/RegisterPage.tsx | 9 ++++++++- src/home/UnauthenticatedView.tsx | 4 ++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/auth/LoginPage.tsx b/src/auth/LoginPage.tsx index 20f6e00..68cd326 100644 --- a/src/auth/LoginPage.tsx +++ b/src/auth/LoginPage.tsx @@ -88,6 +88,7 @@ export const LoginPage: FC = () => { autoCapitalize="none" prefix="@" suffix={`:${Config.defaultServerName()}`} + data-testid="login_username" /> @@ -96,6 +97,7 @@ export const LoginPage: FC = () => { ref={passwordRef} placeholder={t("Password")} label={t("Password")} + data-testid="login_password" /> {error && ( @@ -104,7 +106,11 @@ export const LoginPage: FC = () => { )} - diff --git a/src/auth/RegisterPage.tsx b/src/auth/RegisterPage.tsx index 0464266..5eec26d 100644 --- a/src/auth/RegisterPage.tsx +++ b/src/auth/RegisterPage.tsx @@ -166,6 +166,7 @@ export const RegisterPage: FC = () => { autoCapitalize="none" prefix="@" suffix={`:${Config.defaultServerName()}`} + data-testid="register_username" /> @@ -179,6 +180,7 @@ export const RegisterPage: FC = () => { value={password} placeholder={t("Password")} label={t("Password")} + data-testid="register_password" /> @@ -193,6 +195,7 @@ export const RegisterPage: FC = () => { placeholder={t("Confirm password")} label={t("Confirm password")} ref={confirmPasswordRef} + data-testid="register_confirm_password" /> @@ -217,7 +220,11 @@ export const RegisterPage: FC = () => { )} - diff --git a/src/home/UnauthenticatedView.tsx b/src/home/UnauthenticatedView.tsx index 4d4f5ce..44f16ad 100644 --- a/src/home/UnauthenticatedView.tsx +++ b/src/home/UnauthenticatedView.tsx @@ -186,14 +186,14 @@ export const UnauthenticatedView: FC = () => {