Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eh custom detox #2

Draft
wants to merge 203 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
203 commits
Select commit Hold shift + click to select a range
9386700
Publish 20.13.2 [ci skip]
mobile1-internal Oct 26, 2023
3848613
Publish docs version 20.x
mobile1-internal Oct 26, 2023
fa5dcf8
refactor: extract global typings (#4243)
noomorph Oct 26, 2023
bc0a701
docs(website): fix headers in light mode (#4247)
noomorph Oct 26, 2023
89c14ef
fix(android): add namespace to build.gradle for android gradle plugin…
mikehardy Oct 26, 2023
e2ed936
Publish 20.13.3 [ci skip]
mobile1-internal Oct 27, 2023
500b525
fix(android): AGP8 support (#4254)
noomorph Oct 30, 2023
940ecfc
docs(website): fix outdated sdk and avd manager directories (#4256)
dyvapandhu Oct 30, 2023
2d7b4a2
fix(iOS): update DetoxSync, fix sync issue. (#4258)
asafkorem Oct 30, 2023
47815d3
Publish 20.13.4 [ci skip]
mobile1-internal Oct 30, 2023
a38e736
Publish docs version 20.x
mobile1-internal Oct 30, 2023
5ffe90d
fix(iOS): fix race condition with reanimated.
asafkorem Oct 31, 2023
aedaab3
Merge pull request #4261 from wix/fix-mounting-issue
asafkorem Oct 31, 2023
81db382
Publish 20.13.5 [ci skip]
mobile1-internal Oct 31, 2023
6e87dc1
feat(cli): detached runner (#4260)
noomorph Nov 1, 2023
8e7af5e
docs(website): home page styling (#4246)
IrbisKronos Nov 1, 2023
18d8fad
docs(website): navbar and fonts
IrbisKronos Nov 3, 2023
b323ad1
chore(website): remove unused images.
asafkorem Jun 25, 2023
babc83a
docs(README): update example test with updated APIs.
asafkorem Jun 26, 2023
20004fe
docs(getting-started): extract env setup guide and add overview.
asafkorem Jun 27, 2023
6b6faa5
docs: create contribute section.
asafkorem Jun 27, 2023
248f46a
docs: add code-of-conduct.
asafkorem Nov 5, 2023
51bb3bc
docs: add reporting bugs.
asafkorem Nov 5, 2023
59f9bdb
docs: add code contributing section.
asafkorem Nov 5, 2023
0ec1a7c
docs: add Q&A docs section.
asafkorem Nov 5, 2023
c16d425
docs: add feature-requests docs.
asafkorem Nov 5, 2023
bd91817
docs: add documentation-site docs.
asafkorem Nov 5, 2023
819dc30
docs: change contributing.md to a category overview.
asafkorem Nov 5, 2023
cb2a730
docs: update contribution sidebar.
asafkorem Nov 5, 2023
50c54a4
docs: make docs lint happy.
asafkorem Nov 5, 2023
5aeae37
docs: make docs-lint happy.
asafkorem Nov 5, 2023
d4fd5bf
docs: make doc-link happy.
asafkorem Nov 5, 2023
c540b75
docs: added suggestions
noomorph Nov 8, 2023
200c81b
docs(README): library -> framework.
asafkorem Nov 9, 2023
758ebaf
docs: add monorepo structure section.
asafkorem Nov 9, 2023
7d8c7a4
docs(contribution): add building and testing section.
asafkorem Nov 9, 2023
094a2d3
chore: bump jest-allure2-reporter (#4278)
noomorph Nov 12, 2023
24f68c3
chore: update social stats
noomorph Nov 16, 2023
ebf40fb
chore: bump jest-allure2-reporter (#4284)
noomorph Nov 18, 2023
3865d6f
docs: apply suggestions from code review
asafkorem Nov 20, 2023
29e486a
docs: split setting-up-dev-env doc (add building-and-testing).
asafkorem Nov 20, 2023
9766cdf
docs: make doc-lint happy.
asafkorem Nov 20, 2023
dd881a9
Merge pull request #4271 from wix/docs/contribution-docs
asafkorem Nov 20, 2023
789311f
docs: fix md link.
asafkorem Nov 20, 2023
117ad30
Merge pull request #4286 from wix/docs/contribution-docs
asafkorem Nov 20, 2023
976f5c8
docs: fix web-views doc table of content. (#4289)
asafkorem Nov 22, 2023
b2ce733
docs: update Launch Args guide (#4283)
MattFoley Nov 23, 2023
95308a4
chore: bump [email protected] (#4291)
noomorph Nov 24, 2023
a630b87
Re: Supervised android launch (#4293)
d4vidi Dec 10, 2023
4400519
Publish 20.14.0 [ci skip]
mobile1-internal Dec 10, 2023
95afa61
Publish docs version 20.x
mobile1-internal Dec 10, 2023
8d19806
internal: stop pid override in logs (#4294)
noomorph Dec 12, 2023
1512e9a
Publish 20.14.1 [ci skip]
mobile1-internal Dec 12, 2023
87c661e
Revert "Re: Supervised android launch (#4293)" (#4296)
d4vidi Dec 18, 2023
281536e
Publish 20.14.2 [ci skip]
mobile1-internal Dec 18, 2023
375d470
fix(android): swipe is not working correctly on API 33-34 (#4299)
gosha212 Dec 19, 2023
a7bbc44
Publish 20.14.3 [ci skip]
mobile1-internal Dec 19, 2023
87d3db8
Fix supervised android launch (#4303)
d4vidi Dec 24, 2023
7e6ab80
Publish 20.14.4 [ci skip]
mobile1-internal Dec 24, 2023
1b44946
Fixed crash cause by new version of espresso (#4305)
gosha212 Dec 24, 2023
826ba25
Publish 20.14.5 [ci skip]
mobile1-internal Dec 24, 2023
a603040
fix bug
sonnguyenduc Dec 27, 2023
a529261
refactor: dynamic device allocation (#4290)
noomorph Dec 27, 2023
a9113e6
fix check visible
sonnguyenduc Dec 27, 2023
6d4601d
internal: use jest-environment-emit (#4212)
noomorph Dec 27, 2023
0a94e82
Fix refs and docs involving testBinaryPath (#4311)
d4vidi Dec 27, 2023
5beb113
Update RNClickAction.java
sonnguyenduc Dec 27, 2023
b0c390f
docs: minor updates to project setup
noomorph Dec 28, 2023
aa722a0
chore: update iPhone version in detox init template
noomorph Dec 28, 2023
6b5dc5c
chore: upgrade to Jest 29 (#4313)
noomorph Dec 28, 2023
80bff59
Publish 20.14.6 [ci skip]
mobile1-internal Dec 28, 2023
04863eb
Publish docs version 20.x
mobile1-internal Dec 28, 2023
e7ef6da
chore: update dev dependencies (#4314)
noomorph Dec 28, 2023
8a7344c
fix(ios): increase maxBuffer for applesimutils --list (#4315)
noomorph Dec 28, 2023
60d185b
Publish 20.14.7 [ci skip]
mobile1-internal Dec 28, 2023
f7e875a
fix(test, iOS): patch boost podspec due to pod-install issue.
asafkorem Jan 1, 2024
d8074c6
refactor: postinstall scripts.
asafkorem Jan 1, 2024
4bf3ce7
Merge pull request #4317 from wix/fix/boost-patch
asafkorem Jan 1, 2024
8568fd6
fix(iOS): locate all windows before hitability test.
asafkorem Jan 2, 2024
0d24b88
chore(iOS): revert boost.podspec patch from #4317.
asafkorem Jan 2, 2024
bab6a56
Merge pull request #4318 from wix/fix/ios17-custom-keyboard
asafkorem Jan 2, 2024
e293d15
Merge pull request #4319 from wix/fix/revert-patch
asafkorem Jan 2, 2024
e9873b2
chore: update iOS simulators to 14th gen (#4316)
noomorph Jan 2, 2024
44a212d
Publish 20.14.8 [ci skip]
mobile1-internal Jan 2, 2024
12e0fd8
chore(e2e): disable code coverage in development mode
noomorph Jan 2, 2024
f36aebe
test: update integration test snapshot (#4322)
noomorph Jan 3, 2024
457b129
chore: handle lint warnings (#4324)
noomorph Jan 3, 2024
8c11040
chore: update lerna to latest legacy version (#4325)
noomorph Jan 4, 2024
32a5293
docs(contributing): add .nvm section [ci skip] (#4326)
noomorph Jan 4, 2024
eae1cb6
Revert "Merge pull request #4319 from wix/fix/revert-patch"
Jan 8, 2024
22aebe0
chore: replace mirror with boost.io's mirror.
Jan 8, 2024
3479a49
build(postinstall): remove unused var (path).
Jan 8, 2024
eb267ee
Merge pull request #4328 from wix/fix/revert-patch
asafkorem Jan 8, 2024
de0599f
Add start position as an optional parameter to scrollTo action
andrey-wix Dec 22, 2023
1cca74a
Fix test coverage
andrey-wix Dec 22, 2023
69b340e
Update detox/android/detox/src/full/java/com/wix/detox/espresso/Detox…
andrey-wix Jan 3, 2024
73303f8
Update detox/android/detox/src/full/java/com/wix/detox/espresso/Detox…
andrey-wix Jan 3, 2024
ccc0d89
Update detox/android/detox/src/main/java/com/wix/detox/espresso/scrol…
andrey-wix Jan 3, 2024
d52c3d6
Fix comments
andrey-wix Jan 3, 2024
728d8b3
Fix review
andrey-wix Jan 3, 2024
c46ee50
Merge pull request #4309 from wix/addStartPositionToScrollTo
asafkorem Jan 8, 2024
89961f5
Implementation of scrolling fix for Android 33/34
gosha212 Jan 2, 2024
871306a
Fixing scroll interfere with system gesture navigation on android 33-34
gosha212 Jan 4, 2024
e8c6698
Fixes after MR
gosha212 Jan 8, 2024
374bd34
Added more tests
gosha212 Jan 9, 2024
db80ee7
Fixed tests after merge
gosha212 Jan 10, 2024
275fee9
Merge pull request #4327 from wix/bugfix/2787-scrollto-gets-stuck-on-…
gosha212 Jan 10, 2024
faba8da
WIP
gosha212 Jan 7, 2024
9cbfd66
WIP
gosha212 Jan 8, 2024
e71ffc4
Fixed legacy components
gosha212 Jan 8, 2024
39b0402
Make android workin with rn72
gosha212 Jan 8, 2024
34d467f
Support iOS
gosha212 Jan 8, 2024
d43f0ba
Fixed ios
gosha212 Jan 8, 2024
788c1f6
Reverted detox config
gosha212 Jan 9, 2024
d96ac64
Fixed build for ios RN 0.71
gosha212 Jan 10, 2024
fadb43d
Fixed support for RN 71
gosha212 Jan 11, 2024
a0544eb
Rall back to older gradle
gosha212 Jan 11, 2024
bed7b96
Publish 20.15.0 [ci skip]
mobile1-internal Jan 11, 2024
2032164
Publish docs version 20.x
mobile1-internal Jan 11, 2024
71c978d
Added rn 72 pipelines
gosha212 Jan 11, 2024
eeb9332
Disable old pipelines
gosha212 Jan 11, 2024
512bd8c
Fixed pod
gosha212 Jan 11, 2024
f82059b
Fixed build on rn 71
gosha212 Jan 11, 2024
b9eb42c
test: update testing device, iPhone 15 Pro Max.
igorgn Jan 11, 2024
8ae933d
More build fixes
gosha212 Jan 11, 2024
23a12dd
Revert "More build fixes"
gosha212 Jan 11, 2024
94be43c
Fixed build
gosha212 Jan 11, 2024
7cbfbaa
Fixed build
gosha212 Jan 11, 2024
9d02632
Fixed test
gosha212 Jan 11, 2024
04068ab
Fixed android build
gosha212 Jan 11, 2024
929c7f9
Merge branch 'master' into upgrade/RN72
gosha212 Jan 11, 2024
0f378cc
Fixed build for ios
gosha212 Jan 11, 2024
f4a265f
test(e2e): refactor permissions tests.
asafkorem Dec 3, 2023
04eeb81
test(e2e): refactor permissions tests.
asafkorem Dec 3, 2023
d5e5049
test(e2e): replace calendar permission text's test-id.
asafkorem Dec 3, 2023
62a5f78
test(e2e): add more permissions tests.
asafkorem Dec 5, 2023
0ce97cd
test(e2e): delete previous app install before launch.
asafkorem Dec 11, 2023
e42870a
test(e2e): fix expectation.
asafkorem Dec 11, 2023
fb216c3
docs(types): fix reference url.
asafkorem Dec 11, 2023
77ea920
fix(types): fix photos permission object.
asafkorem Dec 11, 2023
ca9eae9
test)e2e): add permission tests.
asafkorem Dec 11, 2023
b367c62
test(e2e): remove redundant ui components.
asafkorem Dec 11, 2023
4eb766d
test(e2e): add set-multiple-permissions test.
asafkorem Dec 13, 2023
6970859
feat(iOS): extend contacts permissions options (with `limited`).
asafkorem Dec 13, 2023
a14f032
fix(iOS): replace old applesimutils commands with simctl.
asafkorem Dec 13, 2023
d78b3f4
test(e2e): add location tests.
asafkorem Dec 13, 2023
b4601e8
fix(iOS): remove redundant logs.
asafkorem Dec 14, 2023
0f36f62
test(e2e): upgrade dep.
asafkorem Dec 14, 2023
9f1974c
test(e2e): skip face-id permission granted test (due to Simulator bug).
asafkorem Dec 19, 2023
4323d18
test(e2e): fix location tests, remove redundant tests from permission…
asafkorem Dec 19, 2023
04b08bf
remove redundant ELs.
asafkorem Jan 1, 2024
d9c3c56
docs(permissions): link to most-updated commit of permissions tests.
asafkorem Jan 3, 2024
c6bc38e
remove redundant todo
asafkorem Jan 3, 2024
b3a5041
docs(device): update with latest changes.
asafkorem Jan 3, 2024
8a7abf0
Revert "remove redundant todo"
asafkorem Jan 3, 2024
90c6756
test(e2e): enable media-library test.
asafkorem Jan 3, 2024
8f9f5b9
Fixed ios build
gosha212 Jan 11, 2024
3846798
refactor(e2e): remove unused variable.
asafkorem Jan 12, 2024
79abb0a
build(fix): future compatibility with React Native v0.72.
asafkorem Jan 12, 2024
1dcfa6a
test(android): manually link RN permissions library.
asafkorem Jan 12, 2024
688d24f
Merge pull request #4301 from wix/fix/ios17-permissions
asafkorem Jan 14, 2024
3d7cb5d
Publish 20.16.0 [ci skip]
mobile1-internal Jan 14, 2024
b42fd39
Publish docs version 20.x
mobile1-internal Jan 14, 2024
5ec6f6f
Gradle refactorign
gosha212 Jan 14, 2024
41b8eb1
Fixed android build
gosha212 Jan 14, 2024
259d287
Merge branch 'master' into upgrade/RN72-final
gosha212 Jan 15, 2024
6462481
Try to fix ios
gosha212 Jan 15, 2024
845addd
Fixed lint
gosha212 Jan 15, 2024
025b3d1
Fixed tests for ios
gosha212 Jan 15, 2024
7beb1ad
Another attept to fix a build
gosha212 Jan 15, 2024
f71e0bd
Fixed pod file
gosha212 Jan 15, 2024
2368406
Undo changes
gosha212 Jan 15, 2024
8f7a474
Fixed documentation
gosha212 Jan 16, 2024
b87c4e1
Fixed build for ios
gosha212 Jan 16, 2024
912c1ce
Fixes after MR
gosha212 Jan 21, 2024
8dfbdf8
Fixed lint
gosha212 Jan 21, 2024
1f3e32c
Fixed build
gosha212 Jan 21, 2024
cbc5631
Merge pull request #4336 from wix/upgrade/RN72-final
gosha212 Jan 21, 2024
7563d08
Publish 20.17.0 [ci skip]
mobile1-internal Jan 22, 2024
20cdea4
Publish docs version 20.x
mobile1-internal Jan 22, 2024
2a106fa
docs(env-setup): Ref to proprietary android guide (#4356)
d4vidi Feb 1, 2024
700b750
Update environment-setup.md
d4vidi Feb 1, 2024
85f0874
fix: find *.cjs configs (#4358)
noomorph Feb 6, 2024
779b8cc
Publish 20.17.1 [ci skip]
mobile1-internal Feb 7, 2024
9a717e8
Publish docs version 20.x
mobile1-internal Feb 7, 2024
d2b41e2
chore: update Allure integration (#4364)
noomorph Feb 10, 2024
bbcb472
Upgrade/rn73 (#4347)
gosha212 Feb 11, 2024
f9edb05
Fixed legacy slider
gosha212 Feb 11, 2024
bde5ee2
fix(jest): stabilize artifacts flushing (#4367)
noomorph Feb 11, 2024
f26b6ba
Fixed release pipeline
gosha212 Feb 11, 2024
7eb2f41
Merge pull request #4368 from wix/bugix/fix_release_pipeline
gosha212 Feb 11, 2024
cbb9300
Publish 20.18.0 [ci skip]
mobile1-internal Feb 11, 2024
6d95e76
Publish docs version 20.x
mobile1-internal Feb 11, 2024
b6aaf30
fix(ios): track hierarchy artifacts (#4365)
noomorph Feb 11, 2024
076cbd9
Fixed a broken post install script in public version
gosha212 Feb 11, 2024
a7707f0
Revert "Fixed a broken post install script in public version"
gosha212 Feb 11, 2024
3417c25
Fixed broken build
gosha212 Feb 11, 2024
3083a58
Merge pull request #4369 from wix/bugfix/broken-post-install
gosha212 Feb 11, 2024
546d07f
Publish 20.18.1 [ci skip]
mobile1-internal Feb 11, 2024
f4c6593
Merge pull request #4366 from wix/bugfix/update_slider
gosha212 Feb 13, 2024
2838b56
chore: upgrade allure reporter (#4373)
noomorph Feb 17, 2024
8cbce5d
Merge pull request #5 from wix/master
sonnguyenduc Feb 19, 2024
235bd59
Merge branch 'wixMaster' into eh-custom-detox
sonnguyenduc Feb 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .buildkite/jobs/pipeline.android_demo_app_rn_71.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
- "./scripts/demo-projects.android.sh"
env:
REACT_NATIVE_VERSION: 0.71.10
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"
13 changes: 13 additions & 0 deletions .buildkite/jobs/pipeline.android_demo_app_rn_73.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- label: ":android::react: RN .73 + Android: Demo app"
command:
- "nvm install"
- "./scripts/demo-projects.android.sh"
env:
REACT_NATIVE_VERSION: 0.73.2
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"
1 change: 1 addition & 0 deletions .buildkite/jobs/pipeline.android_rn_71.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
REACT_NATIVE_VERSION: 0.71.10
DETOX_DISABLE_POD_INSTALL: true
DETOX_DISABLE_POSTINSTALL: true
SKIP_UNIT_TESTS: true
artifact_paths:
- "/Users/builder/work/coverage/**/*.lcov"
- "/Users/builder/work/**/allure-report-*.html"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
- label: ":android::detox: RN .70 + Android: Tests app"
- label: ":android::detox: RN .73 + Android: Tests app"
command:
- "nvm install"
- "./scripts/ci.android.sh"
env:
REACT_NATIVE_VERSION: 0.70.7
REACT_NATIVE_VERSION: 0.73.2
DETOX_DISABLE_POD_INSTALL: true
DETOX_DISABLE_POSTINSTALL: true
SKIP_UNIT_TESTS: 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"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
- label: ":ios::react: RN. 70 + iOS: Demo app"
- label: ":ios::react: RN .73 + iOS: Demo app"
command:
- "nvm install"
- "./scripts/demo-projects.ios.sh"
env:
REACT_NATIVE_VERSION: 0.70.7
REACT_NATIVE_VERSION: 0.73.2
artifact_paths:
- "/Users/builder/work/coverage/**/*.lcov"
- "/Users/builder/work/artifacts*.tar.gz"
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
- label: ":ios::detox: RN .70 + iOS: Tests app"
- label: ":ios::detox: RN .73 + iOS: Tests app"
command:
- "nvm install"
- "./scripts/ci.ios.sh"
env:
REACT_NATIVE_VERSION: 0.70.7
REACT_NATIVE_VERSION: 0.73.2
artifact_paths:
- "/Users/builder/work/coverage/**/*.lcov"
- "/Users/builder/work/**/allure-report-*.html"
Expand Down
1 change: 1 addition & 0 deletions .buildkite/pipeline.release.fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
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/**/*"

- label: ":shipit: Publish"
Expand Down
9 changes: 5 additions & 4 deletions .buildkite/pipeline_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

echo "steps:"

cat .buildkite/jobs/pipeline.ios_rn_73.yml
cat .buildkite/jobs/pipeline.ios_rn_71.yml
cat .buildkite/jobs/pipeline.ios_rn_70.yml
cat .buildkite/jobs/pipeline.ios_demo_app_rn_73.yml
cat .buildkite/jobs/pipeline.ios_demo_app_rn_71.yml
cat .buildkite/jobs/pipeline.android_rn_73.yml
cat .buildkite/jobs/pipeline.android_rn_71.yml
cat .buildkite/jobs/pipeline.android_rn_70.yml
cat .buildkite/jobs/pipeline.android_demo_app_rn_73.yml
cat .buildkite/jobs/pipeline.android_demo_app_rn_71.yml
cat .buildkite/jobs/pipeline.ios_demo_app_rn_71.yml
cat .buildkite/jobs/pipeline.ios_demo_app_rn_70.yml
cat .buildkite/pipeline.post_processing.yml
20 changes: 18 additions & 2 deletions .github/workflows/rapid-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
node-version-file: '.nvmrc'
- name: Bootstrap Lerna
run: npx lerna@3 bootstrap --no-ci
run: npx lerna@6 bootstrap --no-ci
env:
DETOX_DISABLE_POD_INSTALL: true
DETOX_DISABLE_POSTINSTALL: true
Expand All @@ -47,6 +47,13 @@ jobs:
- name: Generation tests
run: npm test
working-directory: generation
- name: Pack Allure results
run: zip -r allure-results.zip detox/allure-results detox/test/allure-results generation/allure-results
- name: Upload Allure results
uses: actions/upload-artifact@v3
with:
name: allure-results-linux
path: allure-results.zip

windows:
name: Windows
Expand All @@ -57,7 +64,7 @@ jobs:
with:
node-version-file: '.nvmrc'
- name: Bootstrap Lerna (Light)
run: npx lerna@3 bootstrap --no-ci --include-dependents --include-dependencies --scope=detox-test
run: npx lerna@6 bootstrap --no-ci --include-dependents --include-dependencies --scope=detox-test
env:
DETOX_DISABLE_POD_INSTALL: true
DETOX_DISABLE_POSTINSTALL: true
Expand All @@ -67,3 +74,12 @@ jobs:
- name: Integration tests
run: npm run integration
working-directory: detox/test
- name: Pack Allure results
run: |
Compress-Archive -Path detox/allure-results -DestinationPath allure-results.zip
shell: pwsh
- name: Upload Allure results
uses: actions/upload-artifact@v3
with:
name: allure-results-windows
path: allure-results.zip
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/gallium
lts/iron
1 change: 1 addition & 0 deletions .xcoderc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
15.1
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Detox
</h1>
<p align="center">
<b>Gray box end-to-end testing and automation library for mobile apps.</b>
<b>Gray box end-to-end testing and automation framework for mobile apps.</b>
</p>
<p align="center">
<img alt="Demo" src="docs/img/Detox.gif"/>
Expand All @@ -24,15 +24,19 @@ This is a test for a login screen, it runs on a device/simulator like an actual

```js
describe('Login flow', () => {
it('should login successfully', async () => {
beforeEach(async () => {
await device.reloadReactNative();
});

it('should login successfully', async () => {
await element(by.id('email')).typeText('[email protected]');
await element(by.id('password')).typeText('123456');
await element(by.text('Login')).tap();

await expect(element(by.text('Welcome'))).toBeVisible();
await expect(element(by.id('email'))).toNotExist();
const loginButton = element(by.text('Login'));
await loginButton.tap();

await expect(loginButton).not.toExist();
await expect(element(by.label('Welcome'))).toBeVisible();
});
});
```
Expand Down
1 change: 1 addition & 0 deletions detox/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.d.ts
/src/android/espressoapi/**/*.js
/coverage
/ios
Expand Down
6 changes: 1 addition & 5 deletions detox/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
'eslint:recommended',
'plugin:import/recommended',
'plugin:node/recommended',
'plugin:ecmascript-compat/recommended'
'plugin:ecmascript-compat/recommended',
],
parser: '@typescript-eslint/parser',
plugins: [
Expand All @@ -16,10 +16,6 @@ module.exports = {
env: {
node: true
},
globals: {
// TODO: remove use of fail() across the project because Jest Circus doesn't support it
'fail': true
},
rules: {
'@typescript-eslint/no-unused-vars': [
'warn',
Expand Down
20 changes: 6 additions & 14 deletions detox/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,12 @@ buildscript {

ext {
isOfficialDetoxLib = true
kotlinVersion = '1.6.21'
dokkaVersion = '1.6.0'
buildToolsVersion = '33.0.0'
compileSdkVersion = 33
targetSdkVersion = 33
kotlinVersion = '1.8.0'
dokkaVersion = '1.9.10'
buildToolsVersion = '34.0.0'
compileSdkVersion = 34
targetSdkVersion = 34
minSdkVersion = 21

if (System.properties['os.arch'] == "aarch64") {
// For M1 Users we need to use the NDK 24 which added support for aarch64
ndkVersion = "24.0.8215888"
} else {
// Otherwise we default to the side-by-side NDK version from AGP.
ndkVersion = "21.4.7075529"
}
}
ext.detoxKotlinVersion = ext.kotlinVersion

Expand All @@ -28,7 +20,7 @@ buildscript {
if (!rnInfo.isRN71OrNewer) {
classpath "com.facebook.react:react-native-gradle-plugin"
}
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.android.tools.build:gradle'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"

Expand Down
48 changes: 37 additions & 11 deletions detox/android/detox/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
apply from: '../rninfo.gradle'

def _kotlinMinVersion = '1.2.0'
def _materialMinVersion = '1.2.1'
def _materialMinVersion = '1.11.0'

def _ext = rootProject.ext
def _compileSdkVersion = _ext.has('compileSdkVersion') ? _ext.compileSdkVersion : 31
Expand All @@ -20,9 +20,15 @@ def _rnNativeArtifact = rnInfo.isRN71OrHigher
? "com.facebook.react:react-android:${rnInfo.version}"
: 'com.facebook.react:react-native:+'

println "[$project] Resorted to RN native artifact $_rnNativeArtifact"

android {
compileSdkVersion _compileSdkVersion
buildToolsVersion _buildToolsVersion
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
if (agpVersion >= 7) {
namespace "com.wix.detox"
}
compileSdk _compileSdkVersion
buildToolsVersion = _buildToolsVersion

defaultConfig {
minSdkVersion _minSdkVersion
Expand All @@ -33,7 +39,7 @@ android {
consumerProguardFiles 'proguard-rules.pro'
}

flavorDimensions 'detox'
flavorDimensions = ['detox']
productFlavors {
full {
dimension 'detox'
Expand All @@ -48,7 +54,7 @@ android {
unitTests.returnDefaultValues = true
unitTests.all { t ->
reports {
html.enabled true
html.required = true
}
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
Expand All @@ -59,7 +65,7 @@ android {
def repeatLength = output.length()
println '\n' + ('-' * repeatLength) + '\n' + output + '\n' + ('-' * repeatLength) + '\n'

println "see report at file://${t.reports.html.destination}/index.html"
println "see report at file://${t.reports.html.outputLocation}/index.html"
}
}
}
Expand All @@ -76,6 +82,26 @@ android {
lintOptions {
abortOnError false
}

if (rnInfo.isRN72OrHigher) {
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = '17'
}
} else {
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = '11'
}
}
}

// In a nutshell:
Expand All @@ -97,13 +123,13 @@ dependencies {
// Versions are in-sync with the 'androidx-test-1.4.0' release/tag of the android-test github repo,
// used by the Detox generator. See https://github.com/android/android-test/releases/tag/androidx-test-1.4.0
// Important: Should remain so when generator tag is replaced!
api('androidx.test.espresso:espresso-core:3.4.0') {
api('androidx.test.espresso:espresso-core:3.5.1') {
because 'Needed all across Detox but also makes Espresso seamlessly provided to Detox users with hybrid apps/E2E-tests.'
}
api('androidx.test.espresso:espresso-web:3.4.0') {
api('androidx.test.espresso:espresso-web:3.5.1') {
because 'Web-View testing'
}
api('androidx.test.espresso:espresso-contrib:3.4.0') {
api('androidx.test.espresso:espresso-contrib:3.5.1') {
because 'Android datepicker support'
exclude group: "org.checkerframework", module: "checker"
}
Expand Down Expand Up @@ -145,8 +171,8 @@ dependencies {
testImplementation 'org.assertj:assertj-core:3.16.1'
testImplementation "org.jetbrains.kotlin:kotlin-test:$_kotlinVersion"
testImplementation 'org.apache.commons:commons-io:1.3.2'
testImplementation 'org.mockito.kotlin:mockito-kotlin:4.0.0'
testImplementation 'org.robolectric:robolectric:4.4'
testImplementation 'org.mockito.kotlin:mockito-kotlin:5.2.1'
testImplementation 'org.robolectric:robolectric:4.11.1'

testImplementation("com.google.android.material:material:$_materialMinVersion") {
because 'Material components are mentioned explicitly (e.g. Slider in get-attributes handler)'
Expand Down
6 changes: 6 additions & 0 deletions detox/android/detox/proguard-rules-app.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@
-keep class kotlin.text.** { *; }
-keep class kotlin.io.** { *; }
-keep class okhttp3.** { *; }

-keep class androidx.concurrent.futures.** { *; }

-dontwarn androidx.appcompat.**
-dontwarn javax.lang.model.element.**

3 changes: 3 additions & 0 deletions detox/android/detox/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@

-keep class com.wix.detoxprofiler.** { *; }
-dontnote com.wix.detox.instruments.reflected.**

-dontwarn androidx.appcompat.**
-dontwarn javax.lang.model.element.**
8 changes: 4 additions & 4 deletions detox/android/detox/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ tasks.named("dokkaJavadoc") {
// suppression config var or something.
task dokkaDocJar(type: Jar, dependsOn: dokkaJavadoc) {
from "$buildDir/dokkaDoc"
classifier = 'javadoc'
archiveClassifier.set("javadoc")
}

/*
Expand All @@ -119,7 +119,7 @@ task dokkaDocJar(type: Jar, dependsOn: dokkaJavadoc) {

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
archiveClassifier.set("sources")
}

/*
Expand Down Expand Up @@ -193,11 +193,11 @@ publishing {

// Register sources, javadoc as published artifacts (via equivalent tasks' output)
artifact sourcesJar
artifact dokkaDocJar
//artifact dokkaDocJar // waiting for dokka to fix https://github.com/Kotlin/dokka/issues/3153

// Also register source, javadoc as archive-artifacts, for signing
declareArchive sourcesJar
declareArchive dokkaDocJar
//declareArchive dokkaDocJar // waiting for dokka to fix https://github.com/Kotlin/dokka/issues/3153

// Add detox package metadata to the .pom
pom {
Expand Down
Loading
Loading