Skip to content
Commits on Source (3)
......@@ -42,7 +42,7 @@ describe('RegisterFormNew component', () => {
const render = wrapper.dive();
// find the text inputs
let inputs = render.find('TextInput');
let inputs = render.find('Input');
// should have 4 inputs
expect(inputs.length).toBe(3);
......@@ -59,7 +59,7 @@ describe('RegisterFormNew component', () => {
await wrapper.update();
// update the inputs search
inputs = render.find('TextInput');
inputs = render.find('Input');
// simulate user input for paddword confirmation
inputs.at(3).simulate('changeText', 'somepassword');
......@@ -81,7 +81,7 @@ describe('RegisterFormNew component', () => {
const render = wrapper.dive();
// find the text inputs
let inputs = render.find('TextInput');
let inputs = render.find('Input');
// should have 4 inputs
expect(inputs.length).toBe(3);
......@@ -94,7 +94,7 @@ describe('RegisterFormNew component', () => {
await wrapper.update();
// update the inputs search
inputs = render.find('TextInput');
inputs = render.find('Input');
// simulate user input for paddword confirmation
inputs.at(3).simulate('changeText', 'ohNoItIsDifferent');
......@@ -119,7 +119,7 @@ describe('RegisterFormNew component', () => {
const render = wrapper.dive();
// find the text inputs
let inputs = render.find('TextInput');
let inputs = render.find('Input');
// should have 4 inputs
expect(inputs.length).toBe(3);
......@@ -132,7 +132,7 @@ describe('RegisterFormNew component', () => {
await wrapper.update();
// update the inputs search
inputs = render.find('TextInput');
inputs = render.find('Input');
// simulate user input for paddword confirmation
inputs.at(3).simulate('changeText', 'somepassword');
......
......@@ -32,103 +32,190 @@ exports[`RegisterFormNew component should renders correctly 1`] = `
}
/>
</View>
<TextInput
allowFontScaling={true}
autoCapitalize="none"
editable={true}
onChangeText={[Function]}
placeholder="Username"
placeholderTextColor="#444"
rejectResponderTermination={true}
returnKeyType="done"
<View
style={
Array [
Object {
"backgroundColor": "#FFFFFF",
"borderColor": "#D8D8D8",
"borderRadius": 2,
"borderWidth": 1,
"color": "#4A4A4A",
"fontFamily": "Roboto",
"fontSize": 16,
"height": 40,
"lineHeight": 21,
"marginLeft": 20,
"marginRight": 20,
"padding": 10,
"flex": 1,
},
Object {
"marginTop": 10,
},
]
}
underlineColorAndroid="transparent"
value=""
/>
<TextInput
allowFontScaling={true}
autoCapitalize="none"
editable={true}
onChangeText={[Function]}
placeholder="Email"
placeholderTextColor="#444"
rejectResponderTermination={true}
returnKeyType="done"
>
<Text
style={
Array [
Object {
"color": "#9B9B9B",
"fontFamily": "Roboto",
"fontSize": 14,
"marginLeft": 20,
},
Object {
"marginBottom": 10,
},
]
}
>
Username
</Text>
<TextInput
allowFontScaling={true}
autoCapitalize="none"
editable={true}
onChangeText={[Function]}
placeholder=""
placeholderTextColor="#444"
rejectResponderTermination={true}
returnKeyType="done"
style={
Array [
Object {
"backgroundColor": "#FFFFFF",
"borderColor": "#D8D8D8",
"borderRadius": 2,
"borderWidth": 1,
"color": "#4A4A4A",
"fontFamily": "Roboto",
"fontSize": 16,
"height": 40,
"lineHeight": 21,
"marginLeft": 20,
"marginRight": 20,
"padding": 10,
},
undefined,
]
}
underlineColorAndroid="transparent"
value=""
/>
</View>
<View
style={
Array [
Object {
"backgroundColor": "#FFFFFF",
"borderColor": "#D8D8D8",
"borderRadius": 2,
"borderWidth": 1,
"color": "#4A4A4A",
"fontFamily": "Roboto",
"fontSize": 16,
"height": 40,
"lineHeight": 21,
"marginLeft": 20,
"marginRight": 20,
"padding": 10,
"flex": 1,
},
Object {
"marginTop": 10,
},
]
}
underlineColorAndroid="transparent"
value=""
/>
<TextInput
allowFontScaling={true}
autoCapitalize="none"
editable={true}
onChangeText={[Function]}
placeholder="Password"
placeholderTextColor="#444"
rejectResponderTermination={true}
returnKeyType="done"
secureTextEntry={true}
>
<Text
style={
Array [
Object {
"color": "#9B9B9B",
"fontFamily": "Roboto",
"fontSize": 14,
"marginLeft": 20,
},
Object {
"marginBottom": 10,
},
]
}
>
Email
</Text>
<TextInput
allowFontScaling={true}
autoCapitalize="none"
editable={true}
onChangeText={[Function]}
placeholder=""
placeholderTextColor="#444"
rejectResponderTermination={true}
returnKeyType="done"
style={
Array [
Object {
"backgroundColor": "#FFFFFF",
"borderColor": "#D8D8D8",
"borderRadius": 2,
"borderWidth": 1,
"color": "#4A4A4A",
"fontFamily": "Roboto",
"fontSize": 16,
"height": 40,
"lineHeight": 21,
"marginLeft": 20,
"marginRight": 20,
"padding": 10,
},
undefined,
]
}
underlineColorAndroid="transparent"
value=""
/>
</View>
<View
style={
Array [
Object {
"backgroundColor": "#FFFFFF",
"borderColor": "#D8D8D8",
"borderRadius": 2,
"borderWidth": 1,
"color": "#4A4A4A",
"fontFamily": "Roboto",
"fontSize": 16,
"height": 40,
"lineHeight": 21,
"marginLeft": 20,
"marginRight": 20,
"padding": 10,
"flex": 1,
},
Object {
"marginTop": 10,
},
]
}
underlineColorAndroid="transparent"
value=""
/>
>
<Text
style={
Array [
Object {
"color": "#9B9B9B",
"fontFamily": "Roboto",
"fontSize": 14,
"marginLeft": 20,
},
Object {
"marginBottom": 10,
},
]
}
>
Password
</Text>
<TextInput
allowFontScaling={true}
autoCapitalize="none"
editable={true}
onChangeText={[Function]}
placeholder=""
placeholderTextColor="#444"
rejectResponderTermination={true}
returnKeyType="done"
secureTextEntry={true}
style={
Array [
Object {
"backgroundColor": "#FFFFFF",
"borderColor": "#D8D8D8",
"borderRadius": 2,
"borderWidth": 1,
"color": "#4A4A4A",
"fontFamily": "Roboto",
"fontSize": 16,
"height": 40,
"lineHeight": 21,
"marginLeft": 20,
"marginRight": 20,
"padding": 10,
},
undefined,
]
}
underlineColorAndroid="transparent"
value=""
/>
</View>
<View
accessible={true}
focusable={true}
......@@ -217,8 +304,9 @@ exports[`RegisterFormNew component should renders correctly 1`] = `
style={
Array [
Object {
"flexDirection": "row",
"justifyContent": "center",
"flex": 1,
"marginLeft": 10,
"marginRight": 20,
},
Object {
"marginTop": 10,
......@@ -234,13 +322,19 @@ exports[`RegisterFormNew component should renders correctly 1`] = `
"marginRight": 15,
},
undefined,
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
},
Array [
Object {
"alignSelf": "stretch",
},
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderRadius": 30,
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
},
],
Object {
"borderRadius": 2,
},
......@@ -318,6 +412,7 @@ exports[`RegisterFormNew component should renders correctly 1`] = `
},
undefined,
Object {
"color": "white",
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
......@@ -329,7 +424,7 @@ exports[`RegisterFormNew component should renders correctly 1`] = `
]
}
>
CREATE A CHANNEL
Join Minds Now
</Text>
</View>
</View>
......
......@@ -11,9 +11,6 @@ exports[`RegisterScreenNew component should renders correctly 1`] = `
Object {
"padding": 10,
},
Object {
"zIndex": 15,
},
]
}
>
......@@ -82,39 +79,15 @@ exports[`RegisterScreenNew component should renders correctly 1`] = `
Array [
Object {
"backgroundColor": "#FFF",
"elevation": 11,
"height": "78.78%",
"left": 20,
"position": "absolute",
"shadowColor": "#000",
"shadowOffset": Object {
"height": 5,
"width": 5,
},
"shadowOpacity": 0.8,
"shadowRadius": 6.68,
"top": 60,
"transform": Array [
Object {
"rotate": "-1deg",
},
],
"width": "87.5%",
"zIndex": -5,
},
Object {},
]
}
/>
<View
style={
Array [
Object {
"backgroundColor": "#FFF",
"elevation": 11,
"height": "78.78%",
"left": 20,
"position": "absolute",
"shadowColor": "#000",
"shadowOffset": Object {
"height": 5,
......@@ -122,21 +95,38 @@ exports[`RegisterScreenNew component should renders correctly 1`] = `
},
"shadowOpacity": 0.8,
"shadowRadius": 6.68,
"top": 60,
"transform": Array [
Object {
"rotate": "-1deg",
},
],
"width": "87.5%",
"zIndex": -5,
},
Object {
"top": 55,
},
]
}
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"borderRightColor": "transparent",
"borderRightWidth": 100,
"borderStyle": "solid",
"borderTopColor": "red",
"borderTopWidth": 100,
"height": 0,
"width": 0,
},
Object {
"borderRightWidth": 345,
"borderTopColor": "#FFF",
"borderTopWidth": 10,
"right": 2.5,
"top": -10,
"transform": Array [
Object {
"rotate": "180deg",
},
],
},
]
}
/>
<View
style={
Object {
......@@ -156,6 +146,29 @@ exports[`RegisterScreenNew component should renders correctly 1`] = `
/>
</View>
</View>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"borderRightColor": "transparent",
"borderRightWidth": 100,
"borderStyle": "solid",
"borderTopColor": "red",
"borderTopWidth": 100,
"height": 0,
"width": 0,
},
Object {
"borderRightWidth": 345,
"borderTopColor": "#FFF",
"borderTopWidth": 10,
"right": 0,
"top": 132,
},
]
}
/>
</View>
</View>
</View>
......