Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
Epic/e2e detox
· dbf49e82
Brian Hatchet
authored
Dec 23, 2019
and
Martin Santangelo
committed
Dec 23, 2019
dbf49e82
Merge branch 'epic/e2e-detox' into 'release/3.15.0'
· e1551452
Martin Santangelo
authored
Dec 23, 2019
Epic/e2e detox See merge request
!465
e1551452
Hide whitespace changes
Inline
Side-by-side
__tests__/activity/components/__snapshots__/Actions.js.snap
View file @
e1551452
...
...
@@ -144,6 +144,7 @@ exports[`Activity component renders correctly 1`] = `
},
}
}
testID=""
/>
<RemindAction
entity={
...
...
__tests__/activity/components/__snapshots__/Activity.js.snap
View file @
e1551452
...
...
@@ -14,6 +14,7 @@ exports[`Activity component renders correctly 1`] = `
},
]
}
testID="ActivityView"
>
<Pinned
entity={
...
...
@@ -217,6 +218,7 @@ exports[`Activity component renders correctly 1`] = `
}
}
onTranslate={[Function]}
testID=""
toggleEdit={[Function]}
/>
</View>
...
...
__tests__/activity/components/__snapshots__/RemindOwnerBlock.js.snap
View file @
e1551452
...
...
@@ -13,12 +13,9 @@ exports[`Remind owner component renders correctly 1`] = `
}
}
>
<Icon
<
Themed.
Icon
color="rgb(70, 144, 214)"
name="repeat"
raised={false}
reverse={false}
reverseColor="white"
size={16}
style={
Object {
...
...
@@ -26,7 +23,6 @@ exports[`Remind owner component renders correctly 1`] = `
"marginRight": 8,
}
}
underlayColor="white"
/>
<TouchableOpacity
activeOpacity={0.2}
...
...
__tests__/auth/ForgotPassword.js
View file @
e1551452
import
'
react-native
'
;
import
React
from
'
react
'
;
import
{
shallow
}
from
'
enzyme
'
;
import
{
Button
}
from
'
react-native-elements
'
;
import
ForgotPassword
from
'
../../src/auth/ForgotPassword
'
;
import
authService
from
'
../../src/auth/AuthService
'
;
jest
.
mock
(
'
../../src/auth/AuthService
'
);
// Note: test renderer must be required after react-native.
...
...
@@ -37,7 +37,7 @@ describe('ForgotPassword component', () => {
});
// press send
await
render
.
find
(
'
Button
'
).
at
(
1
).
simulate
(
'
press
'
);
await
render
.
find
(
Button
).
at
(
1
).
simulate
(
'
press
'
);
// expect auth service login to be called once
expect
(
authService
.
forgot
).
toBeCalled
();
...
...
@@ -57,7 +57,7 @@ describe('ForgotPassword component', () => {
const
render
=
wrapper
.
dive
();
// press go back
await
render
.
find
(
'
Button
'
).
at
(
0
).
simulate
(
'
press
'
);
await
render
.
find
(
Button
).
at
(
0
).
simulate
(
'
press
'
);
// expect onLogin to be called once
expect
(
mockFn
).
toBeCalled
();
...
...
__tests__/auth/LoginForm.js
View file @
e1551452
...
...
@@ -2,6 +2,7 @@ import 'react-native';
import
React
from
'
react
'
;
import
{
Text
,
TouchableOpacity
}
from
"
react-native
"
;
import
{
shallow
}
from
'
enzyme
'
;
import
{
Button
}
from
'
react-native-elements
'
;
import
LoginForm
from
'
../../src/auth/LoginForm
'
;
import
authService
from
'
../../src/auth/AuthService
'
;
...
...
@@ -41,7 +42,7 @@ describe('LoginForm component', () => {
});
// press login
await
render
.
find
(
'
Button
'
).
at
(
1
).
simulate
(
'
press
'
);
await
render
.
find
(
Button
).
at
(
1
).
simulate
(
'
press
'
);
// check state
expect
(
wrapper
.
state
().
password
).
toEqual
(
'
data
'
);
...
...
__tests__/auth/RegisterForm.js
View file @
e1551452
...
...
@@ -2,6 +2,7 @@ import 'react-native';
import
React
from
'
react
'
;
import
{
Alert
}
from
"
react-native
"
;
import
{
shallow
}
from
'
enzyme
'
;
import
{
Button
,
CheckBox
}
from
'
react-native-elements
'
;
import
RegisterForm
from
'
../../src/auth/RegisterForm
'
;
import
authService
from
'
../../src/auth/AuthService
'
;
...
...
@@ -45,7 +46,7 @@ describe('RegisterForm component', () => {
let
inputs
=
render
.
find
(
'
TextInput
'
);
// should have 4 inputs
expect
(
inputs
.
length
).
toBe
(
3
);
expect
(
inputs
.
length
).
toBe
(
4
);
// simulate user input
inputs
.
at
(
0
).
simulate
(
'
changeText
'
,
'
myFancyUsername
'
);
...
...
@@ -53,7 +54,7 @@ describe('RegisterForm component', () => {
inputs
.
at
(
2
).
simulate
(
'
changeText
'
,
'
somepassword
'
);
// simulate press checkbox
await
render
.
find
(
'
CheckBox
'
).
at
(
1
).
simulate
(
'
press
'
);
await
render
.
find
(
CheckBox
).
at
(
1
).
simulate
(
'
press
'
);
// update component (password confirmation is shown after the password field is set)
await
wrapper
.
update
();
...
...
@@ -65,7 +66,7 @@ describe('RegisterForm component', () => {
inputs
.
at
(
3
).
simulate
(
'
changeText
'
,
'
somepassword
'
);
// simulate press register
await
render
.
find
(
'
Button
'
).
at
(
1
).
simulate
(
'
press
'
);
await
render
.
find
(
Button
).
at
(
1
).
simulate
(
'
press
'
);
// expect auth service register to be called once
expect
(
authService
.
register
).
toBeCalled
();
...
...
@@ -83,8 +84,7 @@ describe('RegisterForm component', () => {
// find the text inputs
let
inputs
=
render
.
find
(
'
TextInput
'
);
// should have 4 inputs
expect
(
inputs
.
length
).
toBe
(
3
);
expect
(
inputs
.
length
).
toBe
(
4
);
// simulate user input
inputs
.
at
(
0
).
simulate
(
'
changeText
'
,
'
myFancyUsername
'
);
...
...
@@ -100,7 +100,7 @@ describe('RegisterForm component', () => {
inputs
.
at
(
3
).
simulate
(
'
changeText
'
,
'
ohNoItIsDifferent
'
);
// simulate press register
await
render
.
find
(
'
Button
'
).
at
(
1
).
simulate
(
'
press
'
);
await
render
.
find
(
Button
).
at
(
1
).
simulate
(
'
press
'
);
// should call alert
expect
(
Alert
.
alert
).
toBeCalled
();
...
...
@@ -122,7 +122,7 @@ describe('RegisterForm component', () => {
let
inputs
=
render
.
find
(
'
TextInput
'
);
// should have 4 inputs
expect
(
inputs
.
length
).
toBe
(
3
);
expect
(
inputs
.
length
).
toBe
(
4
);
// simulate user input
inputs
.
at
(
0
).
simulate
(
'
changeText
'
,
'
myFancyUsername
'
);
...
...
@@ -138,7 +138,7 @@ describe('RegisterForm component', () => {
inputs
.
at
(
3
).
simulate
(
'
changeText
'
,
'
somepassword
'
);
// simulate press register
await
render
.
find
(
'
Button
'
).
at
(
1
).
simulate
(
'
press
'
);
await
render
.
find
(
Button
).
at
(
1
).
simulate
(
'
press
'
);
// should call alert
expect
(
Alert
.
alert
).
toBeCalled
();
...
...
__tests__/auth/__snapshots__/ForgotPassword.js.snap
View file @
e1551452
...
...
@@ -66,23 +66,14 @@ exports[`ForgotPassword component should renders correctly 1`] = `
>
<View
style={
Array [
Object {
"marginLeft": 15,
"marginRight": 15,
},
undefined,
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
},
Object {
"borderRadius": 4,
},
]
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderRadius": 30,
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
}
}
>
<View
...
...
@@ -96,75 +87,37 @@ exports[`ForgotPassword component should renders correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
style={
Object {
"opacity": 1,
}
}
>
<View
pointerEvents="box-only"
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "#9E9E9E",
"flexDirection": "row",
"justifyContent": "center",
"padding": 19,
},
undefined,
undefined,
undefined,
undefined,
undefined,
Object {
"backgroundColor": "rgba(0,0,0, 0.5)",
},
Object {
"borderRadius": 4,
},
Object {
"padding": 12,
},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
]
Object {
"alignItems": "center",
"backgroundColor": "transparent",
"borderColor": "#2089dc",
"borderRadius": 3,
"borderWidth": 0,
"flexDirection": "row",
"justifyContent": "center",
"padding": 8,
}
}
>
<Text
style={
Array [
Object {},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
Array [
Object {
"color": "white",
"fontSize": 20,
},
undefined,
Object {
"fontSize": 17.5,
},
undefined,
Object {
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
},
undefined,
undefined,
undefined,
],
]
Object {
"color": "white",
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
"paddingBottom": 1,
"paddingTop": 2,
"textAlign": "center",
}
}
>
GO BACK
...
...
@@ -174,23 +127,14 @@ exports[`ForgotPassword component should renders correctly 1`] = `
</View>
<View
style={
Array [
Object {
"marginLeft": 15,
"marginRight": 15,
},
undefined,
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
},
Object {
"borderRadius": 4,
},
]
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderRadius": 30,
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
}
}
>
<View
...
...
@@ -204,75 +148,37 @@ exports[`ForgotPassword component should renders correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
style={
Object {
"opacity": 1,
}
}
>
<View
pointerEvents="box-only"
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "#9E9E9E",
"flexDirection": "row",
"justifyContent": "center",
"padding": 19,
},
undefined,
undefined,
undefined,
undefined,
undefined,
Object {
"backgroundColor": "rgba(0,0,0, 0.5)",
},
Object {
"borderRadius": 4,
},
Object {
"padding": 12,
},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
]
Object {
"alignItems": "center",
"backgroundColor": "transparent",
"borderColor": "#2089dc",
"borderRadius": 3,
"borderWidth": 0,
"flexDirection": "row",
"justifyContent": "center",
"padding": 8,
}
}
>
<Text
style={
Array [
Object {},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
Array [
Object {
"color": "white",
"fontSize": 20,
},
undefined,
Object {
"fontSize": 17.5,
},
undefined,
Object {
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
},
undefined,
undefined,
undefined,
],
]
Object {
"color": "white",
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
"paddingBottom": 1,
"paddingTop": 2,
"textAlign": "center",
}
}
>
CONTINUE
...
...
__tests__/auth/__snapshots__/ForgotScreen.js.snap
View file @
e1551452
...
...
@@ -134,23 +134,14 @@ exports[`ForgotScreen component should renders correctly 1`] = `
>
<View
style={
Array [
Object {
"marginLeft": 15,
"marginRight": 15,
},
undefined,
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
},
Object {
"borderRadius": 4,
},
]
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderRadius": 30,
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
}
}
>
<View
...
...
@@ -164,75 +155,37 @@ exports[`ForgotScreen component should renders correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
style={
Object {
"opacity": 1,
}
}
>
<View
pointerEvents="box-only"
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "#9E9E9E",
"flexDirection": "row",
"justifyContent": "center",
"padding": 19,
},
undefined,
undefined,
undefined,
undefined,
undefined,
Object {
"backgroundColor": "rgba(0,0,0, 0.5)",
},
Object {
"borderRadius": 4,
},
Object {
"padding": 12,
},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
]
Object {
"alignItems": "center",
"backgroundColor": "transparent",
"borderColor": "#2089dc",
"borderRadius": 3,
"borderWidth": 0,
"flexDirection": "row",
"justifyContent": "center",
"padding": 8,
}
}
>
<Text
style={
Array [
Object {},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
Array [
Object {
"color": "white",
"fontSize": 20,
},
undefined,
Object {
"fontSize": 17.5,
},
undefined,
Object {
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
},
undefined,
undefined,
undefined,
],
]
Object {
"color": "white",
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
"paddingBottom": 1,
"paddingTop": 2,
"textAlign": "center",
}
}
>
GO BACK
...
...
@@ -242,23 +195,14 @@ exports[`ForgotScreen component should renders correctly 1`] = `
</View>
<View
style={
Array [
Object {
"marginLeft": 15,
"marginRight": 15,
},
undefined,
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
},
Object {
"borderRadius": 4,
},
]
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderRadius": 30,
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
}
}
>
<View
...
...
@@ -272,75 +216,37 @@ exports[`ForgotScreen component should renders correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
style={
Object {
"opacity": 1,
}
}
>
<View
pointerEvents="box-only"
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "#9E9E9E",
"flexDirection": "row",
"justifyContent": "center",
"padding": 19,
},
undefined,
undefined,
undefined,
undefined,
undefined,
Object {
"backgroundColor": "rgba(0,0,0, 0.5)",
},
Object {
"borderRadius": 4,
},
Object {
"padding": 12,
},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
]
Object {
"alignItems": "center",
"backgroundColor": "transparent",
"borderColor": "#2089dc",
"borderRadius": 3,
"borderWidth": 0,
"flexDirection": "row",
"justifyContent": "center",
"padding": 8,
}
}
>
<Text
style={
Array [
Object {},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
Array [
Object {
"color": "white",
"fontSize": 20,
},
undefined,
Object {
"fontSize": 17.5,
},
undefined,
Object {
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
},
undefined,
undefined,
undefined,
],
]
Object {
"color": "white",
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
"paddingBottom": 1,
"paddingTop": 2,
"textAlign": "center",
}
}
>
CONTINUE
...
...
__tests__/auth/__snapshots__/LoginForm.js.snap
View file @
e1551452
...
...
@@ -112,23 +112,14 @@ exports[`LoginForm component should renders correctly 1`] = `
>
<View
style={
Array [
Object {
"marginLeft": 15,
"marginRight": 15,
},
undefined,
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
},
Object {
"borderRadius": 30,
},
]
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderRadius": 30,
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
}
}
>
<View
...
...
@@ -142,75 +133,38 @@ exports[`LoginForm component should renders correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
style={
Object {
"opacity": 1,
}
}
testID="registerButton"
>
<View
pointerEvents="box-only"
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "#9E9E9E",
"flexDirection": "row",
"justifyContent": "center",
"padding": 19,
},
undefined,
undefined,
undefined,
undefined,
undefined,
Object {
"backgroundColor": "transparent",
},
Object {
"borderRadius": 30,
},
Object {
"padding": 12,
},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
]
Object {
"alignItems": "center",
"backgroundColor": "transparent",
"borderColor": "#2089dc",
"borderRadius": 3,
"borderWidth": 0,
"flexDirection": "row",
"justifyContent": "center",
"padding": 8,
}
}
>
<Text
style={
Array [
Object {},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
Array [
Object {
"color": "white",
"fontSize": 20,
},
undefined,
Object {
"fontSize": 17.5,
},
undefined,
Object {
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
},
undefined,
undefined,
undefined,
],
]
Object {
"color": "white",
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
"paddingBottom": 1,
"paddingTop": 2,
"textAlign": "center",
}
}
>
CREATE A CHANNEL
...
...
@@ -220,23 +174,14 @@ exports[`LoginForm component should renders correctly 1`] = `
</View>
<View
style={
Array [
Object {
"marginLeft": 15,
"marginRight": 15,
},
undefined,
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
},
Object {
"borderRadius": 30,
},
]
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderRadius": 30,
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
}
}
>
<View
...
...
@@ -250,76 +195,38 @@ exports[`LoginForm component should renders correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
style={
Object {
"opacity": 1,
}
}
testID="loginButton"
>
<View
pointerEvents="box-only"
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "#9E9E9E",
"flexDirection": "row",
"justifyContent": "center",
"padding": 19,
},
undefined,
undefined,
undefined,
undefined,
undefined,
Object {
"backgroundColor": "transparent",
},
Object {
"borderRadius": 30,
},
Object {
"padding": 12,
},
undefined,
undefined,
undefined,
undefined,
false,
false,
]
Object {
"alignItems": "center",
"backgroundColor": "transparent",
"borderColor": "#2089dc",
"borderRadius": 3,
"borderWidth": 0,
"flexDirection": "row",
"justifyContent": "center",
"padding": 8,
}
}
>
<Text
style={
Array [
Object {},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
Array [
Object {
"color": "white",
"fontSize": 20,
},
undefined,
Object {
"fontSize": 17.5,
},
undefined,
Object {
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
},
undefined,
undefined,
false,
],
]
Object {
"color": "white",
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
"paddingBottom": 1,
"paddingTop": 2,
"textAlign": "center",
}
}
>
LOGIN
...
...
__tests__/auth/__snapshots__/RegisterForm.js.snap
View file @
e1551452
...
...
@@ -41,6 +41,7 @@ exports[`RegisterForm component should renders correctly 1`] = `
},
]
}
testID="registerUsernameInput"
underlineColorAndroid="transparent"
value=""
/>
...
...
@@ -70,6 +71,7 @@ exports[`RegisterForm component should renders correctly 1`] = `
},
]
}
testID="registerEmailInput"
underlineColorAndroid="transparent"
value=""
/>
...
...
@@ -100,6 +102,38 @@ exports[`RegisterForm component should renders correctly 1`] = `
},
]
}
testID="registerPasswordInput"
underlineColorAndroid="transparent"
value=""
/>
<TextInput
allowFontScaling={true}
autoCapitalize="none"
editable={true}
onChangeText={[Function]}
placeholder="Confirm Password"
placeholderTextColor="#444"
rejectResponderTermination={true}
returnKeyType="done"
secureTextEntry={true}
style={
Array [
Object {
"backgroundColor": "#f8f8f8",
"borderRadius": 4,
"color": "#444",
"fontSize": 16,
"fontWeight": "600",
"height": 50,
"letterSpacing": 2,
"padding": 15,
},
Object {
"marginTop": 10,
},
]
}
testID="registerPasswordConfirmInput"
underlineColorAndroid="transparent"
value=""
/>
...
...
@@ -128,19 +162,15 @@ exports[`RegisterForm component should renders correctly 1`] = `
"padding": 10,
}
}
testID="checkbox"
>
<View
style={
Array [
Object {
"alignItems": "center",
"flexDirection": "row",
},
Object {
"justifyContent": "flex-end",
},
false,
]
Object {
"alignItems": "center",
"flexDirection": "row",
"justifyContent": "flex-end",
}
}
>
<Text
...
...
@@ -167,7 +197,9 @@ exports[`RegisterForm component should renders correctly 1`] = `
"color": "#bfbfbf",
"fontSize": 24,
},
undefined,
Object {
"minWidth": 24,
},
Object {
"fontFamily": "FontAwesome",
"fontStyle": "normal",
...
...
@@ -206,19 +238,15 @@ exports[`RegisterForm component should renders correctly 1`] = `
"padding": 10,
}
}
testID="checkbox"
>
<View
style={
Array [
Object {
"alignItems": "center",
"flexDirection": "row",
},
Object {
"justifyContent": "flex-end",
},
false,
]
Object {
"alignItems": "center",
"flexDirection": "row",
"justifyContent": "flex-end",
}
}
>
<Text
...
...
@@ -250,7 +278,9 @@ exports[`RegisterForm component should renders correctly 1`] = `
"color": "#bfbfbf",
"fontSize": 24,
},
undefined,
Object {
"minWidth": 24,
},
Object {
"fontFamily": "FontAwesome",
"fontStyle": "normal",
...
...
@@ -279,23 +309,14 @@ exports[`RegisterForm component should renders correctly 1`] = `
>
<View
style={
Array [
Object {
"marginLeft": 15,
"marginRight": 15,
},
undefined,
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
},
Object {
"borderRadius": 30,
},
]
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderRadius": 30,
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
}
}
>
<View
...
...
@@ -309,75 +330,37 @@ exports[`RegisterForm component should renders correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
style={
Object {
"opacity": 1,
}
}
>
<View
pointerEvents="box-only"
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "#9E9E9E",
"flexDirection": "row",
"justifyContent": "center",
"padding": 19,
},
undefined,
undefined,
undefined,
undefined,
undefined,
Object {
"backgroundColor": "transparent",
},
Object {
"borderRadius": 30,
},
Object {
"padding": 12,
},
undefined,
undefined,
undefined,
undefined,
false,
false,
]
Object {
"alignItems": "center",
"backgroundColor": "transparent",
"borderColor": "#2089dc",
"borderRadius": 3,
"borderWidth": 0,
"flexDirection": "row",
"justifyContent": "center",
"padding": 8,
}
}
>
<Text
style={
Array [
Object {},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
Array [
Object {
"color": "white",
"fontSize": 20,
},
undefined,
Object {
"fontSize": 17.5,
},
undefined,
Object {
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
},
undefined,
undefined,
false,
],
]
Object {
"color": "white",
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
"paddingBottom": 1,
"paddingTop": 2,
"textAlign": "center",
}
}
>
GO BACK
...
...
@@ -387,23 +370,14 @@ exports[`RegisterForm component should renders correctly 1`] = `
</View>
<View
style={
Array [
Object {
"marginLeft": 15,
"marginRight": 15,
},
undefined,
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
},
Object {
"borderRadius": 30,
},
]
Object {
"backgroundColor": "transparent",
"borderColor": "#FFF",
"borderRadius": 30,
"borderWidth": 1,
"marginLeft": 10,
"marginRight": 0,
}
}
>
<View
...
...
@@ -417,75 +391,38 @@ exports[`RegisterForm component should renders correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={null}
style={
Object {
"opacity": 1,
}
}
testID="registerCreateButton"
>
<View
pointerEvents="box-only"
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "#9E9E9E",
"flexDirection": "row",
"justifyContent": "center",
"padding": 19,
},
undefined,
undefined,
undefined,
undefined,
undefined,
Object {
"backgroundColor": "transparent",
},
Object {
"borderRadius": 30,
},
Object {
"padding": 12,
},
undefined,
undefined,
undefined,
undefined,
false,
false,
]
Object {
"alignItems": "center",
"backgroundColor": "transparent",
"borderColor": "#2089dc",
"borderRadius": 3,
"borderWidth": 0,
"flexDirection": "row",
"justifyContent": "center",
"padding": 8,
}
}
>
<Text
style={
Array [
Object {},
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
Array [
Object {
"color": "white",
"fontSize": 20,
},
undefined,
Object {
"fontSize": 17.5,
},
undefined,
Object {
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
},
undefined,
undefined,
false,
],
]
Object {
"color": "white",
"fontSize": 16,
"fontWeight": "600",
"letterSpacing": 1.25,
"paddingBottom": 1,
"paddingTop": 2,
"textAlign": "center",
}
}
>
CREATE A CHANNEL
...
...
__tests__/blogs/__snapshots__/BlogCard.js.snap
View file @
e1551452
...
...
@@ -115,45 +115,159 @@ exports[`blog card component should renders correctly 1`] = `
<View
height={24}
style={
Array [
Object {
"backgroundColor": "transparent",
"height": 24,
"paddingBottom": 10,
"paddingRight": 10,
"paddingTop": 10,
"width": 24,
},
Object {
"borderRadius": 12,
Object {
"backgroundColor": "transparent",
"borderRadius": 17,
"height": 34,
"width": 34,
}
}
theme={
Object {
"colors": Object {
"disabled": "hsl(208, 8%, 90%)",
"divider": "#bcbbc1",
"error": "#ff190c",
"grey0": "#393e42",
"grey1": "#43484d",
"grey2": "#5e6977",
"grey3": "#86939e",
"grey4": "#bdc6cf",
"grey5": "#e1e8ee",
"greyOutline": "#bbb",
"platform": Object {
"android": Object {
"error": "#f44336",
"primary": "#2196f3",
"secondary": "#9C27B0",
"success": "#4caf50",
"warning": "#ffeb3b",
},
"ios": Object {
"error": "#ff3b30",
"primary": "#007aff",
"secondary": "#5856d6",
"success": "#4cd964",
"warning": "#ffcc00",
},
},
"primary": "#2089dc",
"searchBg": "#303337",
"secondary": "#8F0CE8",
"success": "#52c41a",
"warning": "#faad14",
},
undefined,
]
}
}
width={24}
>
<View
accessibilityIgnoresInvertColors={true}
style={
Array [
Object {
"backgroundColor": "#bdbdbd",
"borderRadius": 17,
"flex": 1,
"overflow": "hidden",
"position": "relative",
}
}
>
<Image
onLoad={[Function]}
style={
Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
Object {
"height": null,
"width": null,
},
]
}
testID="RNE__Image"
theme={
Object {
"colors": Object {
"disabled": "hsl(208, 8%, 90%)",
"divider": "#bcbbc1",
"error": "#ff190c",
"grey0": "#393e42",
"grey1": "#43484d",
"grey2": "#5e6977",
"grey3": "#86939e",
"grey4": "#bdc6cf",
"grey5": "#e1e8ee",
"greyOutline": "#bbb",
"platform": Object {
"android": Object {
"error": "#f44336",
"primary": "#2196f3",
"secondary": "#9C27B0",
"success": "#4caf50",
"warning": "#ffeb3b",
},
"ios": Object {
"error": "#ff3b30",
"primary": "#007aff",
"secondary": "#5856d6",
"success": "#4cd964",
"warning": "#ffcc00",
},
},
"primary": "#2089dc",
"searchBg": "#303337",
"secondary": "#8F0CE8",
"success": "#52c41a",
"warning": "#faad14",
},
}
}
/>
<View
accessibilityElementsHidden={false}
importantForAccessibility="yes"
pointerEvents="auto"
style={
Object {
"alignItems": "center",
"alignSelf": "stretch",
"backgroundColor": "rgba(0,0,0,0.2)",
"bottom": 0,
"flex": 1,
"justifyContent": "center",
"left": 0,
"opacity": 1,
"position": "absolute",
"right": 0,
"top": 0,
},
}
}
>
<View
style={
Object {
"alignItems": "center",
"backgroundColor": "transparent",
"flex": 1,
"height": null,
"justifyContent": "center",
"width": null,
}
}
testID="RNE__Image__placeholder"
/>
</View>
<View
style={
Object {
"borderRadius": 12,
},
undefined,
]
}
/>
"flex": 1,
"height": null,
"width": null,
}
}
/>
</View>
</View>
<Text
numberOfLines={1}
...
...
__tests__/blogs/__snapshots__/BlogsViewScreen.js.snap
View file @
e1551452
...
...
@@ -851,14 +851,10 @@ exports[`blog view screen component should renders correctly 1`] = `
}
}
>
<Icon
<
Themed.
Icon
color="#b0bec5"
name="public"
raised={false}
reverse={false}
reverseColor="white"
size={18}
underlayColor="white"
/>
<Text
style={
...
...
@@ -880,15 +876,11 @@ exports[`blog view screen component should renders correctly 1`] = `
>
Attribution-NonCommerical CC BY-NC
</Text>
<Icon
<
Themed.
Icon
color="#4690D6"
name="share"
onPress={[Function]}
raised={false}
reverse={false}
reverseColor="white"
size={20}
underlayColor="white"
/>
</View>
<ForwardRef(_SafeAreaView)
...
...
@@ -900,15 +892,12 @@ exports[`blog view screen component should renders correctly 1`] = `
}
}
>
<Icon
<
Themed.
Icon
color="#4690D6"
name="arrow-back"
onPress={[Function]}
raised={true}
reverse={false}
reverseColor="white"
size={22}
underlayColor="white"
/>
</ForwardRef(_SafeAreaView)>
</View>
...
...
__tests__/boost/__snapshots__/BoostActionBar.js.snap
View file @
e1551452
...
...
@@ -25,12 +25,9 @@ exports[`Boost action bar component renders correctly 1`] = `
}
}
>
<Icon
<
Themed.
Icon
color="rgb(96, 125, 139)"
name="bank"
raised={false}
reverse={false}
reverseColor="white"
size={20}
style={
Object {
...
...
@@ -38,7 +35,6 @@ exports[`Boost action bar component renders correctly 1`] = `
}
}
type="material-community"
underlayColor="white"
/>
<Text
style={
...
...
__tests__/capture/__snapshots__/CapturePoster.js.snap
View file @
e1551452
...
...
@@ -7,6 +7,7 @@ exports[`cature poster component should renders correctly 1`] = `
"flex": 1,
}
}
testID="capturePosterView"
>
<View
style={
...
...
__tests__/capture/__snapshots__/CapturePosterFlags.js.snap
View file @
e1551452
...
...
@@ -936,6 +936,7 @@ exports[`cature poster flags component should renders correctly for props false
"width": "100%",
}
}
testID="tagInput"
underlineColorAndroid="transparent"
value=""
/>
...
...
@@ -2104,6 +2105,7 @@ exports[`cature poster flags component should renders correctly for props true 1
"width": "100%",
}
}
testID="tagInput"
underlineColorAndroid="transparent"
value=""
/>
...
...
__tests__/channel/__snapshots__/ChannelActions.js.snap
View file @
e1551452
...
...
@@ -40,6 +40,7 @@ exports[`channel actions component should renders correctly 1`] = `
"padding": 4,
}
}
testID="MoreButton"
>
<Text
style={
...
...
__tests__/channel/__snapshots__/ChannelScreen.js.snap
View file @
e1551452
...
...
@@ -7,6 +7,7 @@ exports[`Channel screen component should renders correctly 1`] = `
"flex": 1,
}
}
testID="ChannelScreen"
>
<FeedList
emptyMessage={null}
...
...
@@ -471,15 +472,12 @@ exports[`Channel screen component should renders correctly 1`] = `
}
}
>
<Icon
<
Themed.
Icon
color="#4690D6"
name="arrow-back"
onPress={[Function]}
raised={true}
reverse={false}
reverseColor="white"
size={22}
underlayColor="white"
/>
</SafeAreaView>
<CaptureFab
...
...
@@ -525,6 +523,7 @@ exports[`Channel screen component should renders correctly 1`] = `
},
}
}
testID="captureFab"
/>
</View>
`;
...
...
@@ -536,6 +535,7 @@ exports[`Channel screen component should show closed channel message 1`] = `
"flex": 1,
}
}
testID="ChannelScreen"
>
<View>
<ChannelHeader
...
...
@@ -968,15 +968,12 @@ exports[`Channel screen component should show closed channel message 1`] = `
}
}
>
<Icon
<
Themed.
Icon
color="#4690D6"
name="arrow-back"
onPress={[Function]}
raised={true}
reverse={false}
reverseColor="white"
size={22}
underlayColor="white"
/>
</SafeAreaView>
<CaptureFab
...
...
@@ -1022,6 +1019,7 @@ exports[`Channel screen component should show closed channel message 1`] = `
},
}
}
testID="captureFab"
/>
</View>
`;
__tests__/channel/header/__snapshots__/ChannelHeader.js.snap
View file @
e1551452
...
...
@@ -152,6 +152,7 @@ exports[`channel header component owner should render correctly 1`] = `
>
<View
style={null}
testID="SubscribersView"
>
<Text>
SUBSCRIBERS
...
...
@@ -161,7 +162,9 @@ exports[`channel header component owner should render correctly 1`] = `
</Text>
</View>
</View>
<View>
<View
testID="ViewsView"
>
<Text>
VIEWS
</Text>
...
...
@@ -179,6 +182,7 @@ exports[`channel header component owner should render correctly 1`] = `
"flexDirection": "row",
}
}
testID="ChannelNameView"
>
<Text
ellipsizeMode="tail"
...
...
@@ -234,6 +238,7 @@ exports[`channel header component owner should render correctly 1`] = `
"padding": 4,
}
}
testID="EditButton"
>
<Text
style={
...
...
__tests__/messenger/__snapshots__/MessengerSetup.js.snap
View file @
e1551452
...
...
@@ -127,6 +127,7 @@ exports[`Messenger setup component should render correctly for unlock 1`] = `
"padding": 16,
}
}
testID="MessengerSetupText"
underlineColorAndroid="transparent"
/>
</View>
...
...
android/app/build.gradle
View file @
e1551452
...
...
@@ -137,6 +137,8 @@ android {
versionCode
Integer
.
parseInt
(
project
.
versionCode
)
versionName
project
.
versionName
missingDimensionStrategy
"RNNotifications.reactNativeVersion"
,
"reactNative60"
testBuildType
System
.
getProperty
(
'testBuildType'
,
'debug'
)
// This will later be used to control the test apk build type
testInstrumentationRunner
'androidx.test.runner.AndroidJUnitRunner'
}
signingConfigs
{
debug
{
...
...
@@ -245,6 +247,9 @@ dependencies {
implementation
(
"com.github.bumptech.glide:annotations:${glideVersion}"
)
{
exclude
group:
"com.android.support"
,
module:
"annotations"
}
androidTestImplementation
(
'com.wix:detox:+'
)
{
transitive
=
true
}
androidTestImplementation
'junit:junit:4.12'
}
// Run this once to be able to run the application with BUCK
...
...
Prev
1
2
3
4
5
Next