Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into testid-naming-guide
Browse files Browse the repository at this point in the history
  • Loading branch information
d4vidi committed May 9, 2024
2 parents dc4c814 + 4c1c05e commit 07ac990
Show file tree
Hide file tree
Showing 73 changed files with 98 additions and 2,566 deletions.
5 changes: 2 additions & 3 deletions .buildkite/jobs/pipeline.android_demo_app_rn_73.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
REACT_NATIVE_COMPAT_TEST: true # Only set 'true' in jobs with the latest supported RN
DETOX_DISABLE_POD_INSTALL: true
DETOX_DISABLE_POSTINSTALL: true
JAVA_HOME: /opt/openjdk/jdk-17.0.9.jdk/Contents/Home/
artifact_paths:
- "/Users/builder/work/coverage/**/*.lcov"
- "/Users/builder/work/artifacts*.tar.gz"
- "/Users/builder/uibuilder/work/coverage/**/*.lcov"
- "/Users/builder/uibuilder/work/artifacts*.tar.gz"
6 changes: 3 additions & 3 deletions .buildkite/jobs/pipeline.android_rn_71.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
DETOX_DISABLE_POSTINSTALL: true
SKIP_UNIT_TESTS: true
artifact_paths:
- "/Users/builder/work/coverage/**/*.lcov"
- "/Users/builder/work/**/allure-report-*.html"
- "/Users/builder/work/artifacts*.tar.gz"
- "/Users/builder/uibuilder/work/coverage/**/*.lcov"
- "/Users/builder/uibuilder/work/**/allure-report-*.html"
- "/Users/builder/uibuilder/work/artifacts*.tar.gz"
7 changes: 3 additions & 4 deletions .buildkite/jobs/pipeline.android_rn_73.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
REACT_NATIVE_VERSION: 0.73.2
DETOX_DISABLE_POD_INSTALL: true
DETOX_DISABLE_POSTINSTALL: true
JAVA_HOME: /opt/openjdk/jdk-17.0.9.jdk/Contents/Home/
artifact_paths:
- "/Users/builder/work/coverage/**/*.lcov"
- "/Users/builder/work/**/allure-report-*.html"
- "/Users/builder/work/artifacts*.tar.gz"
- "/Users/builder/uibuilder/work/coverage/**/*.lcov"
- "/Users/builder/uibuilder/work/**/allure-report-*.html"
- "/Users/builder/uibuilder/work/artifacts*.tar.gz"
4 changes: 2 additions & 2 deletions .buildkite/jobs/pipeline.ios_demo_app_rn_71.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
env:
REACT_NATIVE_VERSION: 0.71.10
artifact_paths:
- "/Users/builder/work/coverage/**/*.lcov"
- "/Users/builder/work/artifacts*.tar.gz"
- "/Users/builder/uibuilder/work/coverage/**/*.lcov"
- "/Users/builder/uibuilder/work/artifacts*.tar.gz"
4 changes: 2 additions & 2 deletions .buildkite/jobs/pipeline.ios_demo_app_rn_73.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
env:
REACT_NATIVE_VERSION: 0.73.2
artifact_paths:
- "/Users/builder/work/coverage/**/*.lcov"
- "/Users/builder/work/artifacts*.tar.gz"
- "/Users/builder/uibuilder/work/coverage/**/*.lcov"
- "/Users/builder/uibuilder/work/artifacts*.tar.gz"
6 changes: 3 additions & 3 deletions .buildkite/jobs/pipeline.ios_rn_71.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
env:
REACT_NATIVE_VERSION: 0.71.10
artifact_paths:
- "/Users/builder/work/coverage/**/*.lcov"
- "/Users/builder/work/**/allure-report-*.html"
- "/Users/builder/work/artifacts*.tar.gz"
- "/Users/builder/uibuilder/work/coverage/**/*.lcov"
- "/Users/builder/uibuilder/work/**/allure-report-*.html"
- "/Users/builder/uibuilder/work/artifacts*.tar.gz"
6 changes: 3 additions & 3 deletions .buildkite/jobs/pipeline.ios_rn_73.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
env:
REACT_NATIVE_VERSION: 0.73.2
artifact_paths:
- "/Users/builder/work/coverage/**/*.lcov"
- "/Users/builder/work/**/allure-report-*.html"
- "/Users/builder/work/artifacts*.tar.gz"
- "/Users/builder/uibuilder/work/coverage/**/*.lcov"
- "/Users/builder/uibuilder/work/**/allure-report-*.html"
- "/Users/builder/uibuilder/work/artifacts*.tar.gz"
18 changes: 9 additions & 9 deletions .buildkite/pipeline.debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ steps:
multiple: true
hint: "hey Chef, what are we cooking today?"
options:
- label: "iOS RN 70"
- label: "iOS RN 71"
value: "ios_rn_71"
- label: "iOS RN 70"
value: "ios_rn_71"
- label: "iOS Demo App RN 70"
value: "ios_demo_app_rn_70"
- label: "iOS RN 73"
value: "ios_rn_73"
- label: "iOS Demo App RN 71"
value: "ios_demo_app_rn_71"
- label: "Android RN 70"
value: "android_rn_70"
- label: "iOS Demo App RN 73"
value: "ios_demo_app_rn_73"
- label: "Android RN 71"
value: "android_rn_71"
- label: "Android Demo App RN 71"
value: "android_demo_app_rn_71"
- label: "Android RN 73"
value: "android_rn_73"
- label: "Android Demo App RN 73"
value: "android_demo_app_rn_73"

- label: "Get Release Pipeline"
command: '.buildkite/pipeline.sh debug | buildkite-agent pipeline upload'
8 changes: 4 additions & 4 deletions .buildkite/pipeline.release.fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
command:
- "nvm install"
- "npm run package:ios"
artifact_paths: "/Users/builder/work/detox/*.tbz"
artifact_paths: "/Users/builder/uibuilder/work/detox/*.tbz"

- label: ":android: Package android"
key: 'android_package'
Expand All @@ -15,8 +15,8 @@
env:
DETOX_DISABLE_POSTINSTALL: true
DETOX_DISABLE_POD_INSTALL: true
JAVA_HOME: /opt/openjdk/jdk-17.0.9.jdk/Contents/Home/
artifact_paths: "/Users/builder/work/detox/Detox-android/**/*"
JAVA_HOME: /opt/openjdk/openlogic-openjdk-17.0.9+9-mac-x64/jdk-17.0.9.jdk/Contents/Home
artifact_paths: "/Users/builder/uibuilder/work/detox/Detox-android/**/*"

- label: ":android: Package android Legacy"
key: 'android_package_legacy'
Expand All @@ -28,7 +28,7 @@
REACT_NATIVE_VERSION: 0.71.10
DETOX_DISABLE_POSTINSTALL: true
DETOX_DISABLE_POD_INSTALL: true
artifact_paths: "/Users/builder/work/detox/Detox-android/**/*"
artifact_paths: "/Users/builder/uibuilder/work/detox/Detox-android/**/*"

- label: ":shipit: Publish"
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion .xcoderc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.1
15.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract class DetoxScrollActionBase internal constructor(
: ViewAction {
override fun getConstraints(): Matcher<View> = allOf(isAssignableFrom(View::class.java), isDisplayed())
override fun perform(uiController: UiController?, view: View?) =
ScrollHelper.perform(uiController, view, direction, amountInDp, startOffsetPercentX, startOffsetPercentY)
ScrollHelper.perform(uiController, view, direction, amountInDp, startOffsetPercentX, startOffsetPercentY)
}

class DetoxScrollAction(@MotionDir direction: Int, amountInDp: Double, startOffsetPercentX: Float?, startOffsetPercentY: Float?)
Expand All @@ -30,6 +30,8 @@ class DetoxScrollAction(@MotionDir direction: Int, amountInDp: Double, startOffs
override fun perform(uiController: UiController?, view: View?) {
try {
super.perform(uiController, view)
} catch (e: ScrollEdgeException) {
// Hit the edge
} catch (e: Exception) {
throw DetoxRuntimeException(e)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.wix.detox.espresso.scroll

/**
* Along with [FlinglessSwiper], this is based on from Espresso's implementation of Swiping
* Along with [LinearSwiper], this is based on from Espresso's implementation of Swiping
* (i.e. in [androidx.test.espresso.action.Swipe] - typically dispatched via the
* [androidx.test.espresso.action.GeneralSwipeAction] action class).
*
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
public class ScrollHelper {
private static final String LOG_TAG = "DetoxScrollHelper";

private static final int SCROLL_MOTIONS = 70;
private static final int SCROLL_MOTIONS = 40;
private static final int MAX_FLING_WAITS = 3;

private static final double DEFAULT_DEADZONE_PERCENT = 0.05;
Expand Down Expand Up @@ -95,7 +95,7 @@ private static void scrollOnce(UiController uiController, View view, @MotionDir
}

private static void doScroll(final Context context, final UiController uiController, int downX, int downY, int upX, int upY) {
final DetoxSwiper swiper = new FlinglessSwiper(SCROLL_MOTIONS, uiController, ViewConfiguration.get(context));
final DetoxSwiper swiper = new LinearSwiper(uiController);
final DetoxSwipe swipe = new DetoxSwipe(downX, downY, upX, upY, SCROLL_MOTIONS, swiper);
swipe.perform();
}
Expand Down
Loading

0 comments on commit 07ac990

Please sign in to comment.