appium-uiautomator2-driver 3.9.0 → 3.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "automated testing",
8
8
  "android"
9
9
  ],
10
- "version": "3.9.0",
10
+ "version": "3.9.2",
11
11
  "bugs": {
12
12
  "url": "https://github.com/appium/appium-uiautomator2-driver/issues"
13
13
  },
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "appium-adb": "^12.7.0",
60
- "appium-android-driver": "^9.14.0",
60
+ "appium-android-driver": "^9.14.2",
61
61
  "appium-uiautomator2-server": "^7.0.24",
62
62
  "asyncbox": "^3.0.0",
63
63
  "axios": "^1.6.5",
@@ -73,7 +73,7 @@
73
73
  "devDependencies": {
74
74
  "@appium/docutils": "^1.0.1",
75
75
  "@appium/eslint-config-appium-ts": "^0.x",
76
- "@appium/support": "^5.0.3",
76
+ "@appium/support": "^6.0.0",
77
77
  "@appium/test-support": "^3.0.0",
78
78
  "@appium/tsconfig": "^0.x",
79
79
  "@appium/types": "^0.x",
@@ -94,7 +94,7 @@
94
94
  "chai": "^5.1.1",
95
95
  "chai-as-promised": "^8.0.0",
96
96
  "conventional-changelog-conventionalcommits": "^8.0.0",
97
- "mocha": "^10.0.0",
97
+ "mocha": "^11.0.1",
98
98
  "prettier": "^3.0.3",
99
99
  "rimraf": "^5.0.0",
100
100
  "semantic-release": "^24.0.0",
@@ -107,7 +107,7 @@
107
107
  "xpath": "^0.x"
108
108
  },
109
109
  "peerDependencies": {
110
- "appium": "^2.4.1"
110
+ "appium": "^2.4.1 || ^3.0.0-beta.0"
111
111
  },
112
112
  "engines": {
113
113
  "node": ">=14",
@@ -1,5 +1,35 @@
1
1
  #!/bin/bash
2
2
 
3
+ # If a developer has an incorrect local setup, we want to tell them clearly, instead of them needing to read cryptic test failures.
4
+ checkTestPrerequisites() {
5
+ # Check if Appium server is running on default port (4567)
6
+ APPIUM_PORT=${APPIUM_TEST_SERVER_PORT:-4567}
7
+ APPIUM_HOST=${APPIUM_TEST_SERVER_HOST:-127.0.0.1}
8
+ if ! curl -s "http://${APPIUM_HOST}:${APPIUM_PORT}/status" > /dev/null; then
9
+ echo "Error: Appium server is not running on ${APPIUM_HOST}:${APPIUM_PORT}"
10
+ echo "Please start the Appium server first with: appium server -p ${APPIUM_PORT}, or set APPIUM_TEST_SERVER_HOST and APPIUM_TEST_SERVER_PORT environment variables"
11
+ exit 1
12
+ fi
13
+
14
+ # Check if any Android device is connected
15
+ if ! adb devices | grep -q "device$"; then
16
+ echo "Error: No Android device connected"
17
+ echo "Please connect an Android device or start an emulator"
18
+ echo "Current devices list:"
19
+ adb devices
20
+ exit 1
21
+ fi
22
+
23
+ # Check if android-apidemos is installed
24
+ if [ ! -f "node_modules/android-apidemos/apks/ApiDemos-debug.apk" ]; then
25
+ echo "Error: android-apidemos package not found"
26
+ echo "Installing android-apidemos package..."
27
+ npm install android-apidemos --save-dev
28
+ fi
29
+ }
30
+
31
+ checkTestPrerequisites
32
+
3
33
  RESULTS_XML=test-results.xml
4
34
  echo "{\"reporterEnabled\": \"spec, xunit\", \"xunitReporterOptions\": {\"output\": \"$RESULTS_XML\"}}" > reporter_config.json
5
35
  ARGS=(./test/functional/driver-e2e-specs.js \