From cb6a63fc5152d09cc1d572783742ff4bd17f4b5a Mon Sep 17 00:00:00 2001 From: William Grant Date: Tue, 26 Mar 2024 11:36:43 +1100 Subject: [PATCH] feat: start page and tos ids updated --- ts/components/dialog/TermsOfServicePrivacyDialog.tsx | 4 ++-- ts/components/registration/RegistrationStages.tsx | 4 +++- ts/components/registration/TermsAndConditions.tsx | 1 + ts/components/registration/stages/Start.tsx | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ts/components/dialog/TermsOfServicePrivacyDialog.tsx b/ts/components/dialog/TermsOfServicePrivacyDialog.tsx index e7d914e8a..eb79ba62c 100644 --- a/ts/components/dialog/TermsOfServicePrivacyDialog.tsx +++ b/ts/components/dialog/TermsOfServicePrivacyDialog.tsx @@ -48,7 +48,7 @@ export function TermsOfServicePrivacyDialog(props: TermsOfServicePrivacyDialogPr onClick={() => { void shell.openExternal('https://getsession.org/terms-of-service'); }} - dataTestId="session-tos-button" + dataTestId="terms-of-service-button" /> { void shell.openExternal('https://getsession.org/privacy-policy'); }} - dataTestId="session-privacy-policy-button" + dataTestId="privacy-policy-button" /> diff --git a/ts/components/registration/RegistrationStages.tsx b/ts/components/registration/RegistrationStages.tsx index 800418cb1..fb19987bf 100644 --- a/ts/components/registration/RegistrationStages.tsx +++ b/ts/components/registration/RegistrationStages.tsx @@ -70,18 +70,20 @@ export const RegistrationStages = () => { iconPadding="4px" iconColor="var(--text-primary-color)" style={{ border: '2px solid var(--text-primary-color)', borderRadius: '9999px' }} + dataTestId="session-faq-link" onClick={() => { void shell.openExternal('https://getsession.org/faq'); }} /> { void shell.openExternal('https://getsession.org'); }} diff --git a/ts/components/registration/TermsAndConditions.tsx b/ts/components/registration/TermsAndConditions.tsx index 8082cd538..acc00f893 100644 --- a/ts/components/registration/TermsAndConditions.tsx +++ b/ts/components/registration/TermsAndConditions.tsx @@ -22,6 +22,7 @@ export const TermsAndConditions = () => { return ( dispatch(updateTermsOfServicePrivacyModal({ show: true }))} + data-testid="terms-of-service-link" > diff --git a/ts/components/registration/stages/Start.tsx b/ts/components/registration/stages/Start.tsx index c3ddb846d..7d46731f8 100644 --- a/ts/components/registration/stages/Start.tsx +++ b/ts/components/registration/stages/Start.tsx @@ -25,6 +25,7 @@ export const Start = () => { dispatch(setOnboardingStep(Onboarding.CreateAccount)); }} text={window.i18n('onboardingAccountCreate')} + dataTestId="create-account-button" /> { dispatch(setAccountRestorationStep(AccountRestoration.RecoveryPassword)); }} text={window.i18n('onboardingAccountExists')} - dataTestId="restore-using-recovery" + dataTestId="existing-account-button" />