mirror of
https://github.com/bulwarkmail/native.git
synced 2026-10-31 00:06:17 +00:00
test: add test ids to the contact form's name and email fields
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user