...
 
Commits (2)
......@@ -5,6 +5,7 @@ import { shallow } from 'enzyme';
import LoginForm from '../../src/auth/LoginForm';
import authService from '../../src/auth/AuthService';
import TextInput from '../../src/common/components/TextInput';
jest.mock('../../src/auth/AuthService');
......@@ -35,7 +36,7 @@ describe('LoginForm component', () => {
// simulate user input
const render = wrapper.dive();
render.find('TextInput').forEach(child => {
render.find(TextInput).forEach(child => {
child.simulate('changeText', 'data');
});
......
......@@ -12,6 +12,7 @@ exports[`LoginForm component should renders correctly 1`] = `
<TextInput
allowFontScaling={true}
autoCapitalize="none"
editable={false}
onChangeText={[Function]}
placeholder="Username"
placeholderTextColor="#444"
......@@ -42,6 +43,7 @@ exports[`LoginForm component should renders correctly 1`] = `
<TextInput
allowFontScaling={true}
autoCapitalize="none"
editable={false}
onChangeText={[Function]}
placeholder="Password"
placeholderTextColor="#444"
......
......@@ -7,7 +7,7 @@ import * as Animatable from 'react-native-animatable';
import {
View,
Text,
TextInput,
// TextInput,
StyleSheet,
KeyboardAvoidingView,
} from 'react-native';
......@@ -25,6 +25,9 @@ import testID from '../common/helpers/testID';
import logService from '../common/services/log.service';
import ModalPicker from '../common/components/ModalPicker';
// workaround for android copy/paste issue
import TextInput from '../common/components/TextInput';
/**
* Login Form
*/
......