From 33fc33910aec429f89386ea07b3b57425f805157 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Thu, 22 Oct 2026 08:19:50 +0200 Subject: [PATCH] test: add test ids to the contact form's name and email fields --- src/screens/ContactFormScreen.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/screens/ContactFormScreen.tsx b/src/screens/ContactFormScreen.tsx index bd2586b3..f5d1ea49 100644 --- a/src/screens/ContactFormScreen.tsx +++ b/src/screens/ContactFormScreen.tsx @@ -1254,6 +1254,7 @@ export default function ContactFormScreen() { style={styles.input} placeholder={t('contacts.form.given_name', 'First name')} ref={givenRef} + testID="contact-first-name" returnKeyType="next" blurOnSubmit={false} onSubmitEditing={() => middleRef.current?.focus()} @@ -1280,6 +1281,7 @@ export default function ContactFormScreen() { style={styles.input} placeholder={t('contacts.form.surname', 'Last name')} ref={surnameRef} + testID="contact-last-name" returnKeyType="next" blurOnSubmit={false} onSubmitEditing={() => fullRef.current?.focus()} @@ -1347,6 +1349,7 @@ export default function ContactFormScreen() { style={styles.input} placeholder={t('contacts.form.email_placeholder', 'email@example.com')} ref={i === 0 ? firstEmailRef : undefined} + testID={`contact-email-${i}`} placeholderTextColor={c.textMuted} keyboardType="email-address" autoCapitalize="none"