Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
189
Merge Requests
13
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Compare Revisions
250352012762eaa38fb7b38388c6cd1d0203d858...bdd54f08791450af73b668d988e43b4753ae7912
Source
bdd54f08791450af73b668d988e43b4753ae7912
...
Target
250352012762eaa38fb7b38388c6cd1d0203d858
Compare
Commits (3)
Epic/e2e detox
· dbf49e82
Brian Hatchet
authored
23 hours ago
dbf49e82
Merge branch 'epic/e2e-detox' into 'release/3.15.0'
· e1551452
Martin Santangelo
authored
23 hours ago
Epic/e2e detox See merge request
!465
e1551452
(fix) update tests
· bdd54f08
Juan Manuel Solaro
authored
1 hour ago
bdd54f08
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
235 additions
and
127 deletions
+235
-127
__tests__/auth/RegisterFormNew.js
View file @
bdd54f08
...
...
@@ -42,7 +42,7 @@ describe('RegisterFormNew component', () => {
const
render
=
wrapper
.
dive
();
// find the text inputs
let
inputs
=
render
.
find
(
'
Text
Input
'
);
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
(
'
Text
Input
'
);
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
(
'
Text
Input
'
);
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
(
'
Text
Input
'
);
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
(
'
Text
Input
'
);
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
(
'
Text
Input
'
);
inputs
=
render
.
find
(
'
Input
'
);
// simulate user input for paddword confirmation
inputs
.
at
(
3
).
simulate
(
'
changeText
'
,
'
somepassword
'
);
...
...
This diff is collapsed.
__tests__/auth/__snapshots__/RegisterFormNew.js.snap
View file @
bdd54f08
...
...
@@ -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>
...
...
This diff is collapsed.
__tests__/auth/__snapshots__/RegisterScreenNew.js.snap
View file @
bdd54f08
...
...
@@ -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>
...
...
This diff is collapsed.