mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add e2e tests for RNTester examples and relevant testIDs
Summary: Changelog: [Internal] - Add testIDs to RNTester examples Reviewed By: nadiia Differential Revision: D27374322 fbshipit-source-id: 62a63f6f454c21bf98b328275d35776d677a9962
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cb37562f83
commit
cb028ee69c
@@ -182,7 +182,9 @@ class EventSwitchExample extends React.Component<{...}, $FlowFixMeState> {
|
||||
style={{marginBottom: 10}}
|
||||
value={this.state.eventSwitchIsOn}
|
||||
/>
|
||||
<Text>{this.state.eventSwitchIsOn ? 'On' : 'Off'}</Text>
|
||||
<Text testID="event-switch-indicator">
|
||||
{this.state.eventSwitchIsOn ? 'On' : 'Off'}
|
||||
</Text>
|
||||
</View>
|
||||
<View>
|
||||
<Switch
|
||||
@@ -201,7 +203,9 @@ class EventSwitchExample extends React.Component<{...}, $FlowFixMeState> {
|
||||
style={{marginBottom: 10}}
|
||||
value={this.state.eventSwitchRegressionIsOn}
|
||||
/>
|
||||
<Text>{this.state.eventSwitchRegressionIsOn ? 'On' : 'Off'}</Text>
|
||||
<Text testID="event-switch-regression-indicator">
|
||||
{this.state.eventSwitchRegressionIsOn ? 'On' : 'Off'}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user