Repository: wix/Detox
Pull request #4035 (2023-04-30 15:05:09)

chore: remove all EarlGrey's references from code.


Patch:
diff --git a/detox/.gitignore b/detox/.gitignore
index 3330e8ee0..c85d804ff 100644
--- a/detox/.gitignore
+++ b/detox/.gitignore
@@ -1,10 +1,3 @@
-ios/EarlGrey/Demo
-ios/EarlGrey/docs
-ios/EarlGrey/OCHamcrest.framework
-ios/EarlGrey/fishhook
-ios/EarlGrey/Tests/UnitTests/ocmock
-ios/EarlGrey/Tests/UnitTests/TestRig/Resources
-ios/EarlGrey/Tests/FunctionalTests/TestRig/Resources
 Detox.framework
 Detox.framework.tar
 detox-*.aar
diff --git a/detox/index.d.ts b/detox/index.d.ts
index be741cf34..cad74cfdf 100644
--- a/detox/index.d.ts
+++ b/detox/index.d.ts
@@ -790,7 +790,7 @@ declare global {
             setLocation(lat: number, lon: number): Promise<void>;
 
             /**
-             * Disable EarlGrey's network synchronization mechanism on preferred endpoints. Useful if you want to on skip over synchronizing on certain URLs.
+             * Disable network synchronization mechanism on preferred endpoints. Useful if you want to on skip over synchronizing on certain URLs.
              *
              * @example await device.setURLBlacklist(['.*127.0.0.1.*']);
              */
diff --git a/detox/ios/.tbzignore b/detox/ios/.tbzignore
index 2f8355f7a..be02ff965 100644
--- a/detox/ios/.tbzignore
+++ b/detox/ios/.tbzignore
@@ -3,13 +3,6 @@ DerivedData
 COSTouchVisualizer/ExampleObjC
 COSTouchVisualizer/ExampleSwift
 DetoxUserNotificationTests
-EarlGrey/Tests/FunctionalTests
-EarlGrey/Tests/UnitTests/Sources
-EarlGrey/Tests/UnitTests/TestRig
-EarlGrey/Tests/UnitTests/UnitTests.xcodeproj
-EarlGrey/Demo
-EarlGrey/docs
-EarlGrey/gem
 SocketRocket/TestChat
 SocketRocket/TestChatServer
 SocketRocket/Tests
diff --git a/detox/package.json b/detox/package.json
index 8439212b1..7735520d9 100644
--- a/detox/package.json
+++ b/detox/package.json
@@ -1,7 +1,7 @@
 {
   "name": "detox",
   "description": "E2E tests and automation for mobile",
-  "version": "20.7.1",
+  "version": "20.7.0",
   "bin": {
     "detox": "local-cli/cli.js"
   },
diff --git a/detox/src/invoke.js b/detox/src/invoke.js
index 5d0b9eab5..dcf3a26ca 100644
--- a/detox/src/invoke.js
+++ b/detox/src/invoke.js
@@ -1,4 +1,3 @@
-const EarlGrey = require('./invoke/EarlGrey');
 const Espresso = require('./invoke/Espresso');
 const EspressoWeb = require('./invoke/EspressoWeb');
 const Invoke = require('./invoke/Invoke');
@@ -15,7 +14,6 @@ class InvocationManager {
 
 module.exports = {
   InvocationManager,
-  EarlGrey,
   Espresso: Espresso.target,
   EspressoWeb: EspressoWeb.target,
   IOS: Invoke.genericInvokeObject,
diff --git a/detox/src/invoke/EarlGrey.js b/detox/src/invoke/EarlGrey.js
deleted file mode 100644
index ac893145f..000000000
--- a/detox/src/invoke/EarlGrey.js
+++ /dev/null
@@ -1,8 +0,0 @@
-const instance = {
-  type: 'EarlGrey',
-  value: 'instance'
-};
-
-module.exports = {
-  instance
-};
diff --git a/examples/demo-native-android/package.json b/examples/demo-native-android/package.json
index 262a2cd94..dc3e7288a 100644
--- a/examples/demo-native-android/package.json
+++ b/examples/demo-native-android/package.json
@@ -1,13 +1,13 @@
 {
   "name": "detox-demo-native-android",
-  "version": "20.7.1",
+  "version": "20.7.0",
   "private": true,
   "scripts": {
     "packager": "react-native start",
     "detox-server": "detox run-server"
   },
   "devDependencies": {
-    "detox": "^20.7.1"
+    "detox": "^20.7.0"
   },
   "detox": {}
 }
diff --git a/examples/demo-native-ios/package.json b/examples/demo-native-ios/package.json
index dab8464aa..ae949c804 100644
--- a/examples/demo-native-ios/package.json
+++ b/examples/demo-native-ios/package.json
@@ -1,9 +1,9 @@
 {
   "name": "detox-demo-native-ios",
-  "version": "20.7.1",
+  "version": "20.7.0",
   "private": true,
   "devDependencies": {
-    "detox": "^20.7.1"
+    "detox": "^20.7.0"
   },
   "detox": {
     "specs": "",
diff --git a/examples/demo-plugin/package.json b/examples/demo-plugin/package.json
index 440ec9d22..f8c80f4ad 100644
--- a/examples/demo-plugin/package.json
+++ b/examples/demo-plugin/package.json
@@ -1,12 +1,12 @@
 {
   "name": "demo-plugin",
-  "version": "20.7.1",
+  "version": "20.7.0",
   "private": true,
   "scripts": {
     "test:plugin": "detox test --configuration plugin -l verbose"
   },
   "devDependencies": {
-    "detox": "^20.7.1",
+    "detox": "^20.7.0",
     "jest": "^28.0.0"
   },
   "detox": {
diff --git a/examples/demo-react-native-detox-instruments/package.json b/examples/demo-react-native-detox-instruments/package.json
index 80cdc4840..f10dc6f8f 100644
--- a/examples/demo-react-native-detox-instruments/package.json
+++ b/examples/demo-react-native-detox-instruments/package.json
@@ -1,10 +1,10 @@
 {
   "name": "demo-react-native-detox-instruments",
-  "version": "20.7.1",
+  "version": "20.7.0",
   "private": true,
   "scripts": {},
   "devDependencies": {
-    "detox": "^20.7.1"
+    "detox": "^20.7.0"
   },
   "detox": {
     "configurations": {
diff --git a/examples/demo-react-native/package.json b/examples/demo-react-native/package.json
index 1959bc569..193ad2e5d 100644
--- a/examples/demo-react-native/package.json
+++ b/examples/demo-react-native/package.json
@@ -1,6 +1,6 @@
 {
   "name": "example",
-  "version": "20.7.1",
+  "version": "20.7.0",
   "private": true,
   "scripts": {
     "start": "react-native start",
@@ -30,7 +30,7 @@
   "devDependencies": {
     "@types/fs-extra": "^9.0.13",
     "@types/jest": "^29.2.1",
-    "detox": "^20.7.1",
+    "detox": "^20.7.0",
     "fs-extra": "^9.1.0",
     "jest": "^29.2.1",
     "ts-jest": "^29.0.3",
diff --git a/lerna.json b/lerna.json
index b2990d4fb..733f8f923 100644
--- a/lerna.json
+++ b/lerna.json
@@ -13,7 +13,7 @@
     "generation",
     "."
   ],
-  "version": "20.7.1",
+  "version": "20.7.0",
   "npmClient": "npm",
   "command": {
     "publish": {
diff --git a/package.json b/package.json
index 2e344cae1..33c1e59bf 100644
--- a/package.json
+++ b/package.json
@@ -54,5 +54,5 @@
     "shell-utils": "1.x.x",
     "unified": "^10.1.0"
   },
-  "version": "20.7.1"
+  "version": "20.7.0"
 }
diff --git a/website/versioned_docs/version-20.x/demo.mdx b/website/versioned_docs/version-20.x/demo.mdx
index a857e1a4c..f9ea82c9b 100644
--- a/website/versioned_docs/version-20.x/demo.mdx
+++ b/website/versioned_docs/version-20.x/demo.mdx
@@ -49,10 +49,6 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam auctor, odio euismo
 
 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam auctor, odio euismod accumsan dignissim, risus mi blandit ipsum, id ullamcorper risus urna eget augue.
 
-### `example.​heading.​with.​a.​very.​very.​and.​really.​very.​long.​line.​which.​should.​be.​wrapped` \[string \| number\]
-
-- Lorem ipsum dolor sit amet, consectetur elit, sed do eiusmod tempor `incididunt ut labore et dolore magna aliqua, ut enim ad minim veniam`, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.)
-
 ###### `id` \[string \| number\]
 
 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam auctor, odio euismod accumsan dignissim, risus mi blandit ipsum, id ullamcorper risus urna eget augue.


Test patch:
diff --git a/detox/test/package.json b/detox/test/package.json
index 7e7a2e157..3629efa9b 100644
--- a/detox/test/package.json
+++ b/detox/test/package.json
@@ -1,6 +1,6 @@
 {
   "name": "detox-test",
-  "version": "20.7.1",
+  "version": "20.7.0",
   "private": true,
   "engines": {
     "node": ">=14.5.0"
@@ -55,7 +55,7 @@
     "@typescript-eslint/eslint-plugin": "^5.4.0",
     "@typescript-eslint/parser": "^5.4.0",
     "cross-env": "^7.0.3",
-    "detox": "^20.7.1",
+    "detox": "^20.7.0",
     "eslint": "^7.32.0",
     "eslint-plugin-unicorn": "^39.0.0",
     "execa": "^5.1.1",