Skip to content

Instantly share code, notes, and snippets.

View luizaguerra's full-sized avatar

Luiza Guerra luizaguerra

View GitHub Profile
import { UIManager, findNodeHandle } from 'react-native';
_onPress: function() {
const radioButton = this.state.radioButton === 'radiobutton_checked' ?
'radiobutton_unchecked' : 'radiobutton_checked'
this.setState({
radioButton: radioButton
});
@luizaguerra
luizaguerra / importantForAccessibility.html
Created June 21, 2018 14:32
Propriedade importantForAccessibility do React Native
<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>
@luizaguerra
luizaguerra / accessibilityLiveRegion.html
Created June 21, 2018 13:00
Propriedade accessibilityLiveRegion do React Native
<TouchableWithoutFeedback onPress={this._addOne}>
<View style={styles.embedded}>
<Text>Click me</Text>
</View>
</TouchableWithoutFeedback>
<Text accessibilityLiveRegion="polite">
Clicked {this.state.count} times
</Text>
@luizaguerra
luizaguerra / accessibilityComponentType.html
Created June 21, 2018 12:52
Propriedade accessibilityComponentType do React Native
<TouchableWithoutFeedback accessibilityComponentType=”button”
onPress={this._onPress}>
<View style={styles.button}>
<Text style={styles.buttonText}>Press me!</Text>
</View>
</TouchableWithoutFeedback>
@luizaguerra
luizaguerra / accessibilityLabel.html
Last active June 20, 2018 18:54
Propriedade accessibilityLabel do React Native
<TouchableOpacity
accessible={true}
accessibilityLabel={'Tap me!'}
onPress={this._onPress}>
<View style={styles.button}>
<Text style={styles.buttonText}>Press me!</Text>
</View>
</TouchableOpacity>
@luizaguerra
luizaguerra / accessible.html
Created June 20, 2018 17:48
Propriedade accessible do React Native
<View accessible={true}>
<Text>text one</Text>
<Text>text two</Text>
</View>
<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*/
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,
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'
]
},
suites: {
smoke: 'tests/e2e/smoke/*.js',
performance: 'tests/e2e/performance/*.js'
regression: 'tests/e2e/regression/*.js'
},