...
 
Commits (7)
......@@ -13,6 +13,7 @@ exports[`Activity component renders correctly 1`] = `
},
]
}
testID="ActivityView"
>
<Pinned
entity={
......
......@@ -40,6 +40,7 @@ exports[`channel actions component should renders correctly 1`] = `
"padding": 4,
}
}
testID="MoreButton"
>
<Text
style={
......
......@@ -7,6 +7,7 @@ exports[`Channel screen component should renders correctly 1`] = `
"flex": 1,
}
}
testID="ChannelScreen"
>
<FeedList
emptyMessage={null}
......@@ -523,6 +524,7 @@ exports[`Channel screen component should renders correctly 1`] = `
},
}
}
testID="captureFab"
/>
</View>
`;
......@@ -534,6 +536,7 @@ exports[`Channel screen component should show closed channel message 1`] = `
"flex": 1,
}
}
testID="ChannelScreen"
>
<View>
<ChannelHeader
......@@ -1018,6 +1021,7 @@ exports[`Channel screen component should show closed channel message 1`] = `
},
}
}
testID="captureFab"
/>
</View>
`;
......@@ -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={
......
......@@ -136,6 +136,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 {
......@@ -244,6 +246,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
......
package com.minds.mobile;
import com.wix.detox.Detox;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.filters.LargeTest;
import androidx.test.rule.ActivityTestRule;
@RunWith(AndroidJUnit4.class)
@LargeTest
public class DetoxTest {
@Rule
public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class, false, false);
@Test
public void runDetoxTests() {
Detox.runTests(mActivityRule);
}
}
\ No newline at end of file
......@@ -11,6 +11,7 @@ buildscript {
supportLibVersion = "28.0.0"
androidXCore = "1.0.2"
glideVersion = "4.7.1"
kotlinVersion = '1.3.10'
}
repositories {
google()
......@@ -19,6 +20,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.google.gms:google-services:4.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
......@@ -27,6 +29,10 @@ buildscript {
allprojects {
repositories {
mavenLocal()
maven {
// All of Detox' artifacts are provided via the npm module
url "$rootDir/../node_modules/detox/Detox-android"
}
maven {
url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
}
......@@ -56,6 +62,10 @@ subprojects {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.supportLibVersion
defaultConfig {
minSdkVersion 21
}
}
}
}
......
......@@ -22,6 +22,7 @@
"@react-native-community/netinfo": "^4.4.0",
"@sentry/react-native": "^1.0.9",
"crypto-js": "^3.1.9-1",
"detox": "^14.8.1",
"entities": "^2.0.0",
"ethjs-signer": "^0.1.1",
"i18n-js": "^3.2.2",
......@@ -121,6 +122,22 @@
"device": {
"type": "iPhone 11"
}
},
"android.emu.debug": {
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
"build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
"type": "android.attached",
"device": {
"name": "ZY2234PLHJ"
}
},
"android.emu.release": {
"binaryPath": "android/app/build/outputs/apk/release/app-release.apk",
"build": "cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..",
"type": "android.attached",
"device": {
"name": "ZY2234PLHJ"
}
}
},
"test-runner": "jest"
......
......@@ -3346,10 +3346,10 @@ detect-newline@^2.1.0:
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2"
integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=
detox@^14.7.1:
version "14.7.1"
resolved "https://registry.yarnpkg.com/detox/-/detox-14.7.1.tgz#14aa533078f88407238a41a53ac0556fadcaf39f"
integrity sha512-XEkficJ5GlMVTbQzJAiuoGVGasgJb5/uFzeuhPrNW7oZ/ar4toOEp57tu95YteFvLEI1ikXe6j7Rp0shAbZKjg==
detox@^14.8.1:
version "14.8.1"
resolved "https://registry.yarnpkg.com/detox/-/detox-14.8.1.tgz#031493f6dd20273862419a13f71487668b525821"
integrity sha512-tyCs/13E9xoNX8d8OPLmti7vVsbZUdQRQXLlkxhdLavILjG3lrABeJDUM0zKiTvUjVDsbcrVKAXVwlONwTJa6g==
dependencies:
"@babel/core" "^7.4.5"
bunyan "^1.8.12"
......