From ffaf16283ffbb18fac021f77874cb413457fe7d7 Mon Sep 17 00:00:00 2001 From: Alex Akers Date: Fri, 10 Jul 2015 03:59:29 -0700 Subject: [PATCH] [React Native] Add new E2E tests --- Examples/UIExplorer/TouchableExample.js | 10 ++++++---- Examples/UIExplorer/UIExplorerList.js | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Examples/UIExplorer/TouchableExample.js b/Examples/UIExplorer/TouchableExample.js index 494d7771d..e636653ed 100644 --- a/Examples/UIExplorer/TouchableExample.js +++ b/Examples/UIExplorer/TouchableExample.js @@ -130,10 +130,11 @@ var TouchableFeedbackEvents = React.createClass({ }, render: function() { return ( - + this._appendEvent('press')} onPressIn={() => this._appendEvent('pressIn')} onPressOut={() => this._appendEvent('pressOut')} @@ -143,7 +144,7 @@ var TouchableFeedbackEvents = React.createClass({ - + {this.state.eventLog.map((e, ii) => {e})} @@ -165,10 +166,11 @@ var TouchableDelayEvents = React.createClass({ }, render: function() { return ( - + this._appendEvent('press')} delayPressIn={400} onPressIn={() => this._appendEvent('pressIn - 400ms delay')} @@ -181,7 +183,7 @@ var TouchableDelayEvents = React.createClass({ - + {this.state.eventLog.map((e, ii) => {e})} diff --git a/Examples/UIExplorer/UIExplorerList.js b/Examples/UIExplorer/UIExplorerList.js index 16b597cfe..217797e26 100644 --- a/Examples/UIExplorer/UIExplorerList.js +++ b/Examples/UIExplorer/UIExplorerList.js @@ -190,6 +190,7 @@ class UIExplorerList extends React.Component { onChangeText={this._search.bind(this)} placeholder="Search..." style={[styles.searchTextInput, platformTextInputStyle]} + testID="explorer_search" value={this.state.searchText} /> );