This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { UIManager, findNodeHandle } from 'react-native'; | |
_onPress: function() { | |
const radioButton = this.state.radioButton === 'radiobutton_checked' ? | |
'radiobutton_unchecked' : 'radiobutton_checked' | |
this.setState({ | |
radioButton: radioButton | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<View style={styles.container}> | |
<View style={{position: 'absolute', left: 10, top: 10, right: 10, height: 100, | |
backgroundColor: 'green'}} importantForAccessibility=”yes”> | |
<Text> First layout </Text> | |
</View> | |
<View style={{position: 'absolute', left: 10, top: 10, right: 10, height: 100, | |
backgroundColor: 'yellow'}} importantForAccessibility=”no-hide-descendants”> | |
<Text> Second layout </Text> | |
</View> | |
</View> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TouchableWithoutFeedback onPress={this._addOne}> | |
<View style={styles.embedded}> | |
<Text>Click me</Text> | |
</View> | |
</TouchableWithoutFeedback> | |
<Text accessibilityLiveRegion="polite"> | |
Clicked {this.state.count} times | |
</Text> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TouchableWithoutFeedback accessibilityComponentType=”button” | |
onPress={this._onPress}> | |
<View style={styles.button}> | |
<Text style={styles.buttonText}>Press me!</Text> | |
</View> | |
</TouchableWithoutFeedback> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TouchableOpacity | |
accessible={true} | |
accessibilityLabel={'Tap me!'} | |
onPress={this._onPress}> | |
<View style={styles.button}> | |
<Text style={styles.buttonText}>Press me!</Text> | |
</View> | |
</TouchableOpacity> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<View accessible={true}> | |
<Text>text one</Text> | |
<Text>text two</Text> | |
</View> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="red> | |
<li>{{color.name}}</li> | |
<li>{{color.shade}}</li> | |
<li>{{color.code}}</li> | |
</ul> | |
/*evite*/ | |
var nameElemen = element.all(by.css('.red li')).get(0); | |
/*recomendável*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let SpecReporter = require('jasmine-spec-reporter').SpecReporter; | |
exports.config = { | |
//your config here | |
onPrepare: function(){ | |
jasmine.getEnv().addReporter(new SpecReporter({ | |
displayFailuresSummary: true, | |
displayFailuredSpec: true, | |
displaySuiteNumber: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
suites: { | |
login_smoke: 'tests/e2e/login/**/happy_path_Spec.js', | |
login_regression: [ | |
'tests/e2e/login/**/spec1_Spec.js', | |
'tests/e2e/login/**/spec2_Spec.js' | |
'tests/e2e/login/**/spec3_Spec.js' | |
] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
suites: { | |
smoke: 'tests/e2e/smoke/*.js', | |
performance: 'tests/e2e/performance/*.js' | |
regression: 'tests/e2e/regression/*.js' | |
}, |
NewerOlder