@@ -273,27 +273,25 @@ export class FeedbackWidget extends React.Component<FeedbackWidgetProps, Feedbac
273273 >
274274 < View style = { styles . container } >
275275 < View style = { styles . titleContainer } >
276- < Text style = { styles . title } testID = 'form-title' > { text . formTitle } </ Text >
276+ < Text style = { styles . title } testID = 'sentry-feedback- form-title' > { text . formTitle } </ Text >
277277 { config . showBranding && (
278278 < Image
279279 source = { { uri : sentryLogo } }
280280 style = { styles . sentryLogo }
281- testID = 'sentry-logo'
282- accessibilityLabel = 'Sentry logo'
281+ testID = 'sentry-feedback-logo'
283282 />
284283 ) }
285284 </ View >
286285
287286 { config . showName && (
288287 < >
289- < Text style = { styles . label } testID = 'name-label' accessibilityLabel = { text . nameLabel } >
288+ < Text style = { styles . label } >
290289 { text . nameLabel }
291290 { config . isNameRequired && ` ${ text . isRequiredLabel } ` }
292291 </ Text >
293292 < TextInput
294293 style = { styles . input }
295- testID = 'name-input'
296- accessibilityLabel = { text . namePlaceholder }
294+ testID = 'sentry-feedback-name-input'
297295 placeholder = { text . namePlaceholder }
298296 value = { name }
299297 onChangeText = { ( value ) => this . setState ( { name : value } ) }
@@ -303,14 +301,13 @@ export class FeedbackWidget extends React.Component<FeedbackWidgetProps, Feedbac
303301
304302 { config . showEmail && (
305303 < >
306- < Text style = { styles . label } testID = 'email-label' accessibilityLabel = { text . emailLabel } >
304+ < Text style = { styles . label } >
307305 { text . emailLabel }
308306 { config . isEmailRequired && ` ${ text . isRequiredLabel } ` }
309307 </ Text >
310308 < TextInput
311309 style = { styles . input }
312- testID = 'email-input'
313- accessibilityLabel = { text . emailPlaceholder }
310+ testID = 'sentry-feedback-email-input'
314311 placeholder = { text . emailPlaceholder }
315312 keyboardType = { 'email-address' as KeyboardTypeOptions }
316313 value = { email }
@@ -319,14 +316,13 @@ export class FeedbackWidget extends React.Component<FeedbackWidgetProps, Feedbac
319316 </ >
320317 ) }
321318
322- < Text style = { styles . label } testID = 'message-label' accessibilityLabel = { text . messageLabel } >
319+ < Text style = { styles . label } >
323320 { text . messageLabel }
324321 { ` ${ text . isRequiredLabel } ` }
325322 </ Text >
326323 < TextInput
327324 style = { [ styles . input , styles . textArea ] }
328- testID = 'message-input'
329- accessibilityLabel = { text . messagePlaceholder }
325+ testID = 'sentry-feedback-message-input'
330326 placeholder = { text . messagePlaceholder }
331327 value = { description }
332328 onChangeText = { ( value ) => this . setState ( { description : value } ) }
@@ -338,14 +334,10 @@ export class FeedbackWidget extends React.Component<FeedbackWidgetProps, Feedbac
338334 < Image
339335 source = { { uri : this . state . attachmentUri } }
340336 style = { styles . screenshotThumbnail }
341- testID = 'screenshot-thumbnail'
342- accessibilityLabel = 'Screenshot thumbnail'
343337 />
344338 ) }
345339 < TouchableOpacity style = { styles . screenshotButton } onPress = { this . onScreenshotButtonPress } >
346- < Text style = { styles . screenshotText } testID = 'screenshot-button' accessibilityLabel = { ! this . _hasScreenshot ( )
347- ? text . addScreenshotButtonLabel
348- : text . removeScreenshotButtonLabel } >
340+ < Text style = { styles . screenshotText } >
349341 { ! this . _hasScreenshot ( )
350342 ? text . addScreenshotButtonLabel
351343 : text . removeScreenshotButtonLabel }
@@ -359,15 +351,15 @@ export class FeedbackWidget extends React.Component<FeedbackWidgetProps, Feedbac
359351 onCancel ( ) ;
360352 showScreenshotButton ( ) ;
361353 } } >
362- < Text style = { styles . takeScreenshotText } testID = 'capture-screenshot-button' accessibilityLabel = { text . captureScreenshotButtonLabel } > { text . captureScreenshotButtonLabel } </ Text >
354+ < Text style = { styles . takeScreenshotText } > { text . captureScreenshotButtonLabel } </ Text >
363355 </ TouchableOpacity >
364356 ) }
365357 < TouchableOpacity style = { styles . submitButton } onPress = { this . handleFeedbackSubmit } >
366- < Text style = { styles . submitText } testID = 'submit-button' accessibilityLabel = { text . submitButtonLabel } > { text . submitButtonLabel } </ Text >
358+ < Text style = { styles . submitText } testID = 'sentry-feedback- submit-button' > { text . submitButtonLabel } </ Text >
367359 </ TouchableOpacity >
368360
369361 < TouchableOpacity style = { styles . cancelButton } onPress = { onCancel } >
370- < Text style = { styles . cancelText } testID = 'cancel-button' accessibilityLabel = { text . cancelButtonLabel } > { text . cancelButtonLabel } </ Text >
362+ < Text style = { styles . cancelText } > { text . cancelButtonLabel } </ Text >
371363 </ TouchableOpacity >
372364 </ View >
373365 </ TouchableWithoutFeedback >
0 commit comments