From eb826bec8650956a5d752d4260a5401c14dffa46 Mon Sep 17 00:00:00 2001 From: First-Terraner Date: Mon, 1 Apr 2024 18:21:51 +0200 Subject: [PATCH] update e2e test --- .gitignore | 1 + src/components/Button.tsx | 2 +- src/components/InitialModal.tsx | 38 --------------------------------- src/components/Toaster.tsx | 1 + src/components/TxtInput.tsx | 1 + test/e2e/1-flow.test.ts | 37 ++++++++++++++++++++++++++------ 6 files changed, 34 insertions(+), 46 deletions(-) delete mode 100644 src/components/InitialModal.tsx diff --git a/.gitignore b/.gitignore index c65c4c5b..ab8fcd9f 100644 --- a/.gitignore +++ b/.gitignore @@ -44,6 +44,7 @@ web-build/ # Detox artifacts/ +.artifacts/ # Diagnostic reports (https://nodejs.org/api/report.html) report/ diff --git a/src/components/Button.tsx b/src/components/Button.tsx index fb33c89b..bef2502e 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -106,7 +106,7 @@ export function TxtButton({ txt, onPress, icon, disabled, style, txtColor }: ITx style={[styles.copyTxt, ...(style || [])]} onPress={onPress} disabled={disabled} - testID={`${txt}-pin-button`} + testID={`${txt}-button`} > void - onCancel: () => void -} - -export default function InitialModal({ visible, onConfirm, onCancel }: IInitialModalProps) { - const { t } = useTranslation([NS.common]) - const { color, highlight } = useThemeContext() - return ( - - - {t('getStarted')} - - - {t('startHint')} - -