From 990d3398391f212587ef6f072b77fc9328651df2 Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Tue, 4 Jun 2024 17:00:51 -0400 Subject: [PATCH] test: add e2e --- .../index.tsx | 12 ++-- app/containers/ChangePasswordRequired.tsx | 6 +- app/views/RoomsListView/index.tsx | 3 + e2e/helpers/data_setup.ts | 5 +- .../08-change-password-required.spec.ts | 63 +++++++++++++++++++ 5 files changed, 80 insertions(+), 9 deletions(-) create mode 100644 e2e/tests/onboarding/08-change-password-required.spec.ts diff --git a/app/containers/ActionSheet/ActionSheetContentWithInputAndSubmit/index.tsx b/app/containers/ActionSheet/ActionSheetContentWithInputAndSubmit/index.tsx index b6c374d972..6db969c6ad 100644 --- a/app/containers/ActionSheet/ActionSheetContentWithInputAndSubmit/index.tsx +++ b/app/containers/ActionSheet/ActionSheetContentWithInputAndSubmit/index.tsx @@ -42,7 +42,8 @@ const FooterButtons = ({ confirmTitle = '', disabled = false, cancelBackgroundColor = '', - confirmBackgroundColor = '' + confirmBackgroundColor = '', + testID = '' }): React.ReactElement => { const { colors } = useTheme(); return ( @@ -55,12 +56,14 @@ const FooterButtons = ({ color={colors.backdropColor} title={cancelTitle} onPress={cancelAction} + testID={`${testID}-cancel`} />