This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
73 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
function formatLabel(label) { | ||
const platform = device.getPlatform(); | ||
if (platform === 'android') { | ||
return label.toLocaleUpperCase(); | ||
} | ||
return label; | ||
} | ||
|
||
describe('CounterScreen', () => { | ||
beforeAll(async () => { | ||
await device.relaunchApp(); | ||
}); | ||
|
||
it('should show counter screen', async () => { | ||
await expect(element(by.id('HOME_SCREEN'))).toBeVisible(); | ||
await element(by.label('Counter Screen')).tap(); | ||
await element(by.text(formatLabel('Counter Screen'))).tap(); | ||
await expect(element(by.id('COUNTER_SCREEN'))).toBeVisible(); | ||
}); | ||
|
||
it('should increment counter', async () => { | ||
await expect(element(by.label('Counter: 0'))).toBeVisible(); | ||
await element(by.label('Increment')).tap(); | ||
await expect(element(by.label('Counter: 1'))).toBeVisible(); | ||
await element(by.label('Decrement')).tap(); | ||
await element(by.label('Decrement')).tap(); | ||
await expect(element(by.label('Counter: -1'))).toBeVisible(); | ||
await expect(element(by.text('Counter: 0'))).toBeVisible(); | ||
await element(by.text(formatLabel('Increment'))).tap(); | ||
await expect(element(by.text('Counter: 1'))).toBeVisible(); | ||
await element(by.text(formatLabel('Decrement'))).tap(); | ||
await element(by.text(formatLabel('Decrement'))).tap(); | ||
await expect(element(by.text('Counter: -1'))).toBeVisible(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/node_modules/detox/android/detox/build.gradle b/node_modules/detox/android/detox/build.gradle | ||
index 53ad2fa..350b065 100644 | ||
--- a/node_modules/detox/android/detox/build.gradle | ||
+++ b/node_modules/detox/android/detox/build.gradle | ||
@@ -22,10 +22,6 @@ android { | ||
|
||
productFlavors { | ||
flavorDimensions "minReactNative" | ||
- minReactNative44 { | ||
- dimension "minReactNative" | ||
- | ||
- } | ||
minReactNative46 { | ||
dimension "minReactNative" | ||
} | ||
@@ -69,9 +65,6 @@ android { | ||
dependencies { | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$_kotlinVersion" | ||
|
||
- minReactNative44Implementation 'com.squareup.okhttp3:okhttp:3.4.1' | ||
- minReactNative44Implementation 'com.squareup.okhttp3:okhttp-ws:3.4.1' | ||
- | ||
minReactNative46Implementation 'com.squareup.okhttp3:okhttp:3.6.0' | ||
minReactNative46Implementation 'com.squareup.okio:okio:1.13.0' | ||
|
||
@@ -82,7 +75,7 @@ dependencies { | ||
implementation 'com.android.support.test:rules:1.0.2' | ||
|
||
// noinspection GradleDynamicVersion | ||
- compileOnly "com.facebook.react:react-native:+" | ||
+ api "com.facebook.react:react-native:+" | ||
|
||
implementation 'org.apache.commons:commons-lang3:3.4' | ||
implementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/node_modules/react-native-navigation/lib/android/app/build.gradle b/node_modules/react-native-navigation/lib/android/app/build.gradle | ||
index 2e6c70a..39de2ce 100644 | ||
--- a/node_modules/react-native-navigation/lib/android/app/build.gradle | ||
+++ b/node_modules/react-native-navigation/lib/android/app/build.gradle | ||
@@ -83,9 +83,9 @@ allprojects { p -> | ||
|
||
dependencies { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
- implementation 'com.android.support:design:26.1.0' | ||
- implementation 'com.android.support:appcompat-v7:26.1.0' | ||
- implementation 'com.android.support:support-v4:26.1.0' | ||
+ implementation 'com.android.support:design:27.1.1' | ||
+ implementation 'com.android.support:appcompat-v7:27.1.1' | ||
+ implementation 'com.android.support:support-v4:27.1.1' | ||
|
||
implementation 'com.github.wix-playground:ahbottomnavigation:2.4.9' | ||
implementation 'com.github.wix-playground:reflow-animator:1.0.4' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters