File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
app/react-native/src/preview/components Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,11 @@ export default class OnDeviceUI extends Component {
124
124
< Animated . View style = { menuSpacerStyles } />
125
125
< View style = { style . previewContainer } >
126
126
< Animated . View style = { headerStyles } >
127
- < TouchableWithoutFeedback onPress = { this . menuToggledHandler } >
127
+ < TouchableWithoutFeedback
128
+ onPress = { this . menuToggledHandler }
129
+ testID = 'Storybook.OnDeviceUI.open'
130
+ accessibilityLabel = 'Storybook.OnDeviceUI.open'
131
+ >
128
132
< View >
129
133
< Image source = { openIcon } style = { style . icon } />
130
134
</ View >
@@ -140,7 +144,11 @@ export default class OnDeviceUI extends Component {
140
144
</ View >
141
145
</ View >
142
146
< Animated . View style = { menuStyles } onLayout = { this . menuLayoutHandler } >
143
- < TouchableWithoutFeedback onPress = { this . menuToggledHandler } >
147
+ < TouchableWithoutFeedback
148
+ onPress = { this . menuToggledHandler }
149
+ testID = 'Storybook.OnDeviceUI.close'
150
+ accessibilityLabel = 'Storybook.OnDeviceUI.close'
151
+ >
144
152
< View style = { style . closeButton } >
145
153
< Image source = { closeIcon } style = { style . icon } />
146
154
</ View >
Original file line number Diff line number Diff line change @@ -17,7 +17,13 @@ SectionHeader.propTypes = {
17
17
} ;
18
18
19
19
const ListItem = ( { title, selected, onPress } ) =>
20
- < TouchableOpacity key = { title } style = { style . item } onPress = { onPress } >
20
+ < TouchableOpacity
21
+ key = { title }
22
+ style = { style . item }
23
+ onPress = { onPress }
24
+ testID = { `Storybook.ListItem.${ title } ` }
25
+ accessibilityLabel = { `Storybook.ListItem.${ title } ` }
26
+ >
21
27
< Text style = { [ style . itemText , selected && style . itemTextSelected ] } >
22
28
{ title }
23
29
</ Text >
You can’t perform that action at this time.
0 commit comments