appium-safari-driver 4.1.6 → 4.1.7
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/CHANGELOG.md +6 -0
- package/build/lib/index.d.ts +4 -0
- package/build/lib/index.d.ts.map +1 -0
- package/build/{index.js → lib/index.js} +1 -1
- package/build/lib/index.js.map +1 -0
- package/{index.js → lib/index.ts} +1 -1
- package/package.json +12 -2
- package/tsconfig.json +0 -1
- package/.github/dependabot.yml +0 -20
- package/.github/workflows/functional-test.yml +0 -63
- package/.github/workflows/pr-title.yml +0 -10
- package/.github/workflows/publish.js.yml +0 -39
- package/.github/workflows/unit-test.yml +0 -42
- package/.mocharc.js +0 -4
- package/.releaserc +0 -37
- package/build/index.d.ts +0 -4
- package/build/index.d.ts.map +0 -1
- package/build/index.js.map +0 -1
- package/build/test/functional/desktop-driver-e2e-specs.d.ts +0 -2
- package/build/test/functional/desktop-driver-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/desktop-driver-e2e-specs.js +0 -69
- package/build/test/functional/desktop-driver-e2e-specs.js.map +0 -1
- package/build/test/functional/mobile-driver-e2e-specs.d.ts +0 -2
- package/build/test/functional/mobile-driver-e2e-specs.d.ts.map +0 -1
- package/build/test/functional/mobile-driver-e2e-specs.js +0 -95
- package/build/test/functional/mobile-driver-e2e-specs.js.map +0 -1
- package/build/test/unit/driver-specs.d.ts +0 -2
- package/build/test/unit/driver-specs.d.ts.map +0 -1
- package/build/test/unit/driver-specs.js +0 -10
- package/build/test/unit/driver-specs.js.map +0 -1
- package/build/test/unit/utils-specs.d.ts +0 -2
- package/build/test/unit/utils-specs.d.ts.map +0 -1
- package/build/test/unit/utils-specs.js +0 -43
- package/build/test/unit/utils-specs.js.map +0 -1
- package/build/test/utils.d.ts +0 -4
- package/build/test/utils.d.ts.map +0 -1
- package/build/test/utils.js +0 -7
- package/build/test/utils.js.map +0 -1
- package/build/tsconfig.tsbuildinfo +0 -1
- package/eslint.config.mjs +0 -5
- package/npm-shrinkwrap.json +0 -4453
- package/test/functional/desktop-driver-e2e-specs.ts +0 -41
- package/test/functional/mobile-driver-e2e-specs.ts +0 -68
- package/test/unit/driver-specs.ts +0 -9
- package/test/unit/utils-specs.ts +0 -44
- package/test/utils.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [4.1.7](https://github.com/appium/appium-safari-driver/compare/v4.1.6...v4.1.7) (2026-01-23)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* Update published dist payload ([#158](https://github.com/appium/appium-safari-driver/issues/158)) ([34c22a0](https://github.com/appium/appium-safari-driver/commit/34c22a048b4f33c266d7a74b379eab84fac351b7))
|
|
6
|
+
|
|
1
7
|
## [4.1.6](https://github.com/appium/appium-safari-driver/compare/v4.1.5...v4.1.6) (2025-12-22)
|
|
2
8
|
|
|
3
9
|
### Miscellaneous Chores
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SafariDriver = void 0;
|
|
4
|
-
const driver_1 = require("./
|
|
4
|
+
const driver_1 = require("./driver");
|
|
5
5
|
Object.defineProperty(exports, "SafariDriver", { enumerable: true, get: function () { return driver_1.SafariDriver; } });
|
|
6
6
|
exports.default = driver_1.SafariDriver;
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":";;;AAAA,qCAAwC;AAG/B,6FAHA,qBAAY,OAGA;AADrB,kBAAe,qBAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"appium",
|
|
6
6
|
"safari"
|
|
7
7
|
],
|
|
8
|
-
"version": "4.1.
|
|
8
|
+
"version": "4.1.7",
|
|
9
9
|
"author": "Appium Contributors",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"repository": {
|
|
@@ -33,11 +33,21 @@
|
|
|
33
33
|
],
|
|
34
34
|
"mainClass": "SafariDriver"
|
|
35
35
|
},
|
|
36
|
-
"main": "./build/index.js",
|
|
36
|
+
"main": "./build/lib/index.js",
|
|
37
|
+
"types": "./build/lib/index.d.ts",
|
|
37
38
|
"bin": {},
|
|
38
39
|
"directories": {
|
|
39
40
|
"lib": "lib"
|
|
40
41
|
},
|
|
42
|
+
"files": [
|
|
43
|
+
"lib",
|
|
44
|
+
"build",
|
|
45
|
+
"tsconfig.json",
|
|
46
|
+
"!build/tsconfig.tsbuildinfo",
|
|
47
|
+
"!build/test",
|
|
48
|
+
"LICENSE",
|
|
49
|
+
"CHANGELOG.md"
|
|
50
|
+
],
|
|
41
51
|
"dependencies": {
|
|
42
52
|
"asyncbox": "^4.0.1",
|
|
43
53
|
"bluebird": "^3.5.1",
|
package/tsconfig.json
CHANGED
package/.github/dependabot.yml
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
updates:
|
|
3
|
-
- package-ecosystem: npm
|
|
4
|
-
directory: "/"
|
|
5
|
-
schedule:
|
|
6
|
-
interval: daily
|
|
7
|
-
time: "11:00"
|
|
8
|
-
open-pull-requests-limit: 10
|
|
9
|
-
commit-message:
|
|
10
|
-
prefix: "chore"
|
|
11
|
-
include: "scope"
|
|
12
|
-
- package-ecosystem: "github-actions"
|
|
13
|
-
directory: "/"
|
|
14
|
-
schedule:
|
|
15
|
-
interval: daily
|
|
16
|
-
time: "11:00"
|
|
17
|
-
open-pull-requests-limit: 10
|
|
18
|
-
commit-message:
|
|
19
|
-
prefix: "chore"
|
|
20
|
-
include: "scope"
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
name: Functional Tests
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
paths-ignore:
|
|
6
|
-
- 'docs/**'
|
|
7
|
-
- '*.md'
|
|
8
|
-
|
|
9
|
-
concurrency:
|
|
10
|
-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
11
|
-
cancel-in-progress: true
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
test:
|
|
15
|
-
env:
|
|
16
|
-
CI: true
|
|
17
|
-
APPIUM_TEST_SERVER_PORT: 4567
|
|
18
|
-
APPIUM_TEST_SERVER_HOST: 127.0.0.1
|
|
19
|
-
APPIUM_STARTUP_TIMEOUT_SEC: 30
|
|
20
|
-
_FORCE_LOGS: 1
|
|
21
|
-
runs-on: macos-latest
|
|
22
|
-
steps:
|
|
23
|
-
- uses: actions/checkout@v6
|
|
24
|
-
- uses: actions/setup-node@v6
|
|
25
|
-
with:
|
|
26
|
-
node-version: lts/*
|
|
27
|
-
check-latest: true
|
|
28
|
-
- run: |
|
|
29
|
-
appium_ver=$(node -p "require('./package.json').peerDependencies?.appium")
|
|
30
|
-
npm install -g "appium@$appium_ver"
|
|
31
|
-
npm install
|
|
32
|
-
name: Install dev dependencies
|
|
33
|
-
- run: |
|
|
34
|
-
cwd=$(pwd)
|
|
35
|
-
pushd "$cwd"
|
|
36
|
-
cd ~
|
|
37
|
-
appium driver install --source=local "$cwd"
|
|
38
|
-
nohup appium server \
|
|
39
|
-
--port=$APPIUM_TEST_SERVER_PORT \
|
|
40
|
-
--address=$APPIUM_TEST_SERVER_HOST \
|
|
41
|
-
--relaxed-security \
|
|
42
|
-
2>&1 > "$cwd/appium.log" &
|
|
43
|
-
popd
|
|
44
|
-
name: Start Appium server
|
|
45
|
-
- run: |
|
|
46
|
-
seconds_started=$(date +%s)
|
|
47
|
-
while ! nc -z $APPIUM_TEST_SERVER_HOST $APPIUM_TEST_SERVER_PORT; do
|
|
48
|
-
sleep 0.1
|
|
49
|
-
seconds_elapsed=$(( $(date +%s) - seconds_started ))
|
|
50
|
-
if [[ $seconds_elapsed -gt $APPIUM_STARTUP_TIMEOUT_SEC ]]; then
|
|
51
|
-
echo "Appium server was unable to start within $APPIUM_STARTUP_TIMEOUT_SEC seconds timeout"
|
|
52
|
-
exit 1
|
|
53
|
-
fi
|
|
54
|
-
done
|
|
55
|
-
name: Wait for Appium server startup
|
|
56
|
-
- run: npm run e2e-test
|
|
57
|
-
name: Run functional tests
|
|
58
|
-
- name: Save server output
|
|
59
|
-
if: ${{ always() }}
|
|
60
|
-
uses: actions/upload-artifact@master
|
|
61
|
-
with:
|
|
62
|
-
name: appium.log
|
|
63
|
-
path: appium.log
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
push:
|
|
6
|
-
branches: [ master ]
|
|
7
|
-
|
|
8
|
-
permissions:
|
|
9
|
-
contents: write
|
|
10
|
-
pull-requests: write
|
|
11
|
-
issues: write
|
|
12
|
-
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
|
|
13
|
-
|
|
14
|
-
jobs:
|
|
15
|
-
build:
|
|
16
|
-
runs-on: macos-latest
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v6
|
|
19
|
-
- name: Use Node.js
|
|
20
|
-
uses: actions/setup-node@v6
|
|
21
|
-
with:
|
|
22
|
-
node-version: lts/*
|
|
23
|
-
- run: npm install --no-package-lock
|
|
24
|
-
name: Install dependencies
|
|
25
|
-
- run: npm run test
|
|
26
|
-
name: Run NPM Test
|
|
27
|
-
- run: |
|
|
28
|
-
rm -rf package-lock.json node_modules
|
|
29
|
-
# Remove dev and peer dependencies from node_modules
|
|
30
|
-
npm prune --omit=dev --omit=peer --no-package-lock
|
|
31
|
-
name: Remove dev dependencies and appium peer dependencies
|
|
32
|
-
- run: npm shrinkwrap --omit=dev --omit=peer
|
|
33
|
-
name: Create shrinkwrap
|
|
34
|
-
- run: npm install --only=dev --no-package-lock
|
|
35
|
-
name: Install dev dependencies for the release
|
|
36
|
-
- run: npx semantic-release
|
|
37
|
-
env:
|
|
38
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
39
|
-
name: Release
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
name: Unit Tests
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches: [ master ]
|
|
6
|
-
paths-ignore:
|
|
7
|
-
- 'docs/**'
|
|
8
|
-
- '*.md'
|
|
9
|
-
push:
|
|
10
|
-
branches: [ master ]
|
|
11
|
-
paths-ignore:
|
|
12
|
-
- 'docs/**'
|
|
13
|
-
- '*.md'
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
node_matrix:
|
|
18
|
-
uses: appium/appium-workflows/.github/workflows/node-lts-matrix.yml@main
|
|
19
|
-
|
|
20
|
-
test:
|
|
21
|
-
needs:
|
|
22
|
-
- node_matrix
|
|
23
|
-
strategy:
|
|
24
|
-
fail-fast: false
|
|
25
|
-
matrix:
|
|
26
|
-
node-version: ${{ fromJSON(needs.node_matrix.outputs.versions) }}
|
|
27
|
-
runs-on: macos-latest
|
|
28
|
-
steps:
|
|
29
|
-
- uses: actions/checkout@v6
|
|
30
|
-
- uses: actions/setup-node@v6
|
|
31
|
-
with:
|
|
32
|
-
node-version: ${{ matrix.node-version }}
|
|
33
|
-
check-latest: true
|
|
34
|
-
- uses: SocketDev/action@v1
|
|
35
|
-
with:
|
|
36
|
-
mode: firewall-free
|
|
37
|
-
- run: sfw npm install --no-package-lock
|
|
38
|
-
name: Install dev dependencies
|
|
39
|
-
- run: npm run lint
|
|
40
|
-
name: Run linter
|
|
41
|
-
- run: npm run test
|
|
42
|
-
name: Run unit tests
|
package/.mocharc.js
DELETED
package/.releaserc
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"plugins": [
|
|
3
|
-
["@semantic-release/commit-analyzer", {
|
|
4
|
-
"preset": "angular",
|
|
5
|
-
"releaseRules": [
|
|
6
|
-
{"type": "chore", "release": "patch"}
|
|
7
|
-
]
|
|
8
|
-
}],
|
|
9
|
-
["@semantic-release/release-notes-generator", {
|
|
10
|
-
"preset": "conventionalcommits",
|
|
11
|
-
"presetConfig": {
|
|
12
|
-
"types": [
|
|
13
|
-
{"type": "feat", "section": "Features"},
|
|
14
|
-
{"type": "fix", "section": "Bug Fixes"},
|
|
15
|
-
{"type": "perf", "section": "Performance Improvements"},
|
|
16
|
-
{"type": "revert", "section": "Reverts"},
|
|
17
|
-
{"type": "chore", "section": "Miscellaneous Chores"},
|
|
18
|
-
{"type": "refactor", "section": "Code Refactoring"},
|
|
19
|
-
{"type": "docs", "section": "Documentation", "hidden": true},
|
|
20
|
-
{"type": "style", "section": "Styles", "hidden": true},
|
|
21
|
-
{"type": "test", "section": "Tests", "hidden": true},
|
|
22
|
-
{"type": "build", "section": "Build System", "hidden": true},
|
|
23
|
-
{"type": "ci", "section": "Continuous Integration", "hidden": true}
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
}],
|
|
27
|
-
["@semantic-release/changelog", {
|
|
28
|
-
"changelogFile": "CHANGELOG.md"
|
|
29
|
-
}],
|
|
30
|
-
"@semantic-release/npm",
|
|
31
|
-
["@semantic-release/git", {
|
|
32
|
-
"assets": ["docs", "package.json", "CHANGELOG.md"],
|
|
33
|
-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
34
|
-
}],
|
|
35
|
-
"@semantic-release/github"
|
|
36
|
-
]
|
|
37
|
-
}
|
package/build/index.d.ts
DELETED
package/build/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":";;6BAA6B,cAAc"}
|
package/build/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":";;;AAAA,yCAA4C;AAGnC,6FAHA,qBAAY,OAGA;AADrB,kBAAe,qBAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"desktop-driver-e2e-specs.d.ts","sourceRoot":"","sources":["../../../test/functional/desktop-driver-e2e-specs.ts"],"names":[],"mappings":""}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const webdriverio_1 = require("webdriverio");
|
|
37
|
-
const utils_1 = require("../utils");
|
|
38
|
-
const chai_1 = require("chai");
|
|
39
|
-
const chai = __importStar(require("chai"));
|
|
40
|
-
const chaiAsPromised = __importStar(require("chai-as-promised"));
|
|
41
|
-
chai.use(chaiAsPromised.default);
|
|
42
|
-
const CAPS = {
|
|
43
|
-
browserName: 'AppiumSafari',
|
|
44
|
-
platformName: 'mac',
|
|
45
|
-
'appium:automationName': 'safari',
|
|
46
|
-
'wdio:enforceWebDriverClassic': true,
|
|
47
|
-
};
|
|
48
|
-
describe('Desktop SafariDriver', function () {
|
|
49
|
-
this.timeout(utils_1.MOCHA_TIMEOUT);
|
|
50
|
-
let driver = null;
|
|
51
|
-
beforeEach(async function () {
|
|
52
|
-
driver = await (0, webdriverio_1.remote)({
|
|
53
|
-
hostname: utils_1.HOST,
|
|
54
|
-
port: utils_1.PORT,
|
|
55
|
-
capabilities: CAPS,
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
afterEach(async function () {
|
|
59
|
-
if (driver) {
|
|
60
|
-
await driver.deleteSession();
|
|
61
|
-
driver = null;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
it('should start and stop a session', async function () {
|
|
65
|
-
await driver.url('https://appium.io/');
|
|
66
|
-
(0, chai_1.expect)(await driver.getPageSource()).to.not.be.empty;
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
//# sourceMappingURL=desktop-driver-e2e-specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"desktop-driver-e2e-specs.js","sourceRoot":"","sources":["../../../test/functional/desktop-driver-e2e-specs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAqC;AACrC,oCAAqD;AAErD,+BAA8B;AAC9B,2CAA6B;AAC7B,iEAAmD;AAEnD,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;AAEjC,MAAM,IAAI,GAAG;IACX,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,KAAK;IACnB,uBAAuB,EAAE,QAAQ;IACjC,8BAA8B,EAAE,IAAI;CACrC,CAAC;AAEF,QAAQ,CAAC,sBAAsB,EAAE;IAC/B,IAAI,CAAC,OAAO,CAAC,qBAAa,CAAC,CAAC;IAE5B,IAAI,MAAM,GAAmB,IAAI,CAAC;IAElC,UAAU,CAAC,KAAK;QACd,MAAM,GAAG,MAAM,IAAA,oBAAM,EAAC;YACpB,QAAQ,EAAE,YAAI;YACd,IAAI,EAAE,YAAI;YACV,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,SAAS,CAAC,KAAK;QACb,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,MAAM,CAAC,aAAa,EAAE,CAAC;YAC7B,MAAM,GAAG,IAAI,CAAC;QAChB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE,KAAK;QACzC,MAAM,MAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;QACxC,IAAA,aAAM,EAAC,MAAM,MAAO,CAAC,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC;IACxD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-driver-e2e-specs.d.ts","sourceRoot":"","sources":["../../../test/functional/mobile-driver-e2e-specs.ts"],"names":[],"mappings":""}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const webdriverio_1 = require("webdriverio");
|
|
37
|
-
const node_simctl_1 = require("node-simctl");
|
|
38
|
-
const utils_1 = require("../utils");
|
|
39
|
-
const chai_1 = require("chai");
|
|
40
|
-
const chai = __importStar(require("chai"));
|
|
41
|
-
const chaiAsPromised = __importStar(require("chai-as-promised"));
|
|
42
|
-
chai.use(chaiAsPromised.default);
|
|
43
|
-
const PLATFORM_VERSION = process.env.PLATFORM_VERSION || '14.1';
|
|
44
|
-
const DEVICE_NAME = process.env.DEVICE_NAME || 'iPhone 11 Pro Max';
|
|
45
|
-
const CAPS = {
|
|
46
|
-
browserName: 'AppiumSafari',
|
|
47
|
-
platformName: 'ios',
|
|
48
|
-
'appium:automationName': 'safari',
|
|
49
|
-
'safari:useSimulator': true,
|
|
50
|
-
'safari:platformVersion': PLATFORM_VERSION,
|
|
51
|
-
'safari:deviceName': DEVICE_NAME,
|
|
52
|
-
'wdio:enforceWebDriverClassic': true,
|
|
53
|
-
};
|
|
54
|
-
describe('Mobile SafariDriver', function () {
|
|
55
|
-
this.timeout(utils_1.MOCHA_TIMEOUT);
|
|
56
|
-
let driver = null;
|
|
57
|
-
before(async function () {
|
|
58
|
-
if (process.env.CI) {
|
|
59
|
-
// In Azure CI the stuff unexpectedly fails with
|
|
60
|
-
// "The device is not configured to allow remote control via WebDriver. To fix this, toggle 'Allow Remote Automation' in Safari's settings (Settings App > Safari > Advanced)."
|
|
61
|
-
// error
|
|
62
|
-
return this.skip();
|
|
63
|
-
}
|
|
64
|
-
// Preboot Simulator to avoid unexpected timeouts
|
|
65
|
-
const simctl = new node_simctl_1.Simctl();
|
|
66
|
-
const allDevices = await simctl.getDevices(PLATFORM_VERSION, 'iOS');
|
|
67
|
-
const device = allDevices.find(({ name }) => name === DEVICE_NAME);
|
|
68
|
-
if (!device) {
|
|
69
|
-
throw new Error(`Cannot find '${DEVICE_NAME}' Simulator (${PLATFORM_VERSION})`);
|
|
70
|
-
}
|
|
71
|
-
if (device.state !== 'Booted') {
|
|
72
|
-
simctl.udid = device.udid;
|
|
73
|
-
await simctl.bootDevice();
|
|
74
|
-
await simctl.startBootMonitor();
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
beforeEach(async function () {
|
|
78
|
-
driver = await (0, webdriverio_1.remote)({
|
|
79
|
-
hostname: utils_1.HOST,
|
|
80
|
-
port: utils_1.PORT,
|
|
81
|
-
capabilities: CAPS,
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
afterEach(async function () {
|
|
85
|
-
if (driver) {
|
|
86
|
-
await driver.deleteSession();
|
|
87
|
-
driver = null;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
it('should start and stop a session', async function () {
|
|
91
|
-
await driver.url('https://appium.io/');
|
|
92
|
-
(0, chai_1.expect)(await driver.getPageSource()).to.not.be.empty;
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
//# sourceMappingURL=mobile-driver-e2e-specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-driver-e2e-specs.js","sourceRoot":"","sources":["../../../test/functional/mobile-driver-e2e-specs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAqC;AACrC,6CAAqC;AACrC,oCAAqD;AAErD,+BAA8B;AAC9B,2CAA6B;AAC7B,iEAAmD;AAEnD,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;AAEjC,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,MAAM,CAAC;AAChE,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,mBAAmB,CAAC;AACnE,MAAM,IAAI,GAAG;IACX,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,KAAK;IACnB,uBAAuB,EAAE,QAAQ;IACjC,qBAAqB,EAAE,IAAI;IAC3B,wBAAwB,EAAE,gBAAgB;IAC1C,mBAAmB,EAAE,WAAW;I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C;YAC7B,MAAM,GAAG,IAAI,CAAC;QAChB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE,KAAK;QACzC,MAAM,MAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;QACxC,IAAA,aAAM,EAAC,MAAM,MAAO,CAAC,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC;IACxD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"driver-specs.d.ts","sourceRoot":"","sources":["../../../test/unit/driver-specs.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const driver_1 = require("../../lib/driver");
|
|
4
|
-
const chai_1 = require("chai");
|
|
5
|
-
describe('SafariDriver', function () {
|
|
6
|
-
it('should exist', function () {
|
|
7
|
-
(0, chai_1.expect)(driver_1.SafariDriver).to.exist;
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=driver-specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"driver-specs.js","sourceRoot":"","sources":["../../../test/unit/driver-specs.ts"],"names":[],"mappings":";;AAAA,6CAAgD;AAChD,+BAA8B;AAE9B,QAAQ,CAAC,cAAc,EAAE;IACvB,EAAE,CAAC,cAAc,EAAE;QACjB,IAAA,aAAM,EAAC,qBAAY,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-specs.d.ts","sourceRoot":"","sources":["../../../test/unit/utils-specs.ts"],"names":[],"mappings":""}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("../../lib/utils");
|
|
4
|
-
const chai_1 = require("chai");
|
|
5
|
-
describe('formatCapsForServer', function () {
|
|
6
|
-
it('should format empty caps', function () {
|
|
7
|
-
const result = (0, utils_1.formatCapsForServer)({});
|
|
8
|
-
(0, chai_1.expect)(result).to.eql({
|
|
9
|
-
browserName: 'Safari',
|
|
10
|
-
browserVersion: undefined,
|
|
11
|
-
platformName: 'iOS',
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
it('should assign default caps', function () {
|
|
15
|
-
const result = (0, utils_1.formatCapsForServer)({
|
|
16
|
-
browserName: 'yolo',
|
|
17
|
-
browserVersion: '12',
|
|
18
|
-
platformName: 'mac',
|
|
19
|
-
});
|
|
20
|
-
(0, chai_1.expect)(result).to.eql({
|
|
21
|
-
browserName: 'Safari',
|
|
22
|
-
browserVersion: '12',
|
|
23
|
-
platformName: 'mac',
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
it('should only pass caps with supported prefixes and standard caps', function () {
|
|
27
|
-
const result = (0, utils_1.formatCapsForServer)({
|
|
28
|
-
'safari:deviceUDID': '1234',
|
|
29
|
-
'webkit:yolo': '567',
|
|
30
|
-
'appium:bar': '789',
|
|
31
|
-
'acceptInsecureCerts': true
|
|
32
|
-
});
|
|
33
|
-
(0, chai_1.expect)(result).to.eql({
|
|
34
|
-
browserName: 'Safari',
|
|
35
|
-
browserVersion: undefined,
|
|
36
|
-
platformName: 'iOS',
|
|
37
|
-
'safari:deviceUDID': '1234',
|
|
38
|
-
'webkit:yolo': '567',
|
|
39
|
-
'acceptInsecureCerts': true
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=utils-specs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-specs.js","sourceRoot":"","sources":["../../../test/unit/utils-specs.ts"],"names":[],"mappings":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
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../test/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,QAAqD,CAAC;AACvE,eAAO,MAAM,IAAI,QAA8D,CAAC;AAChF,eAAO,MAAM,aAAa,SAAS,CAAC"}
|
package/build/test/utils.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MOCHA_TIMEOUT = exports.PORT = exports.HOST = void 0;
|
|
4
|
-
exports.HOST = process.env.APPIUM_TEST_SERVER_HOST || '127.0.0.1';
|
|
5
|
-
exports.PORT = parseInt(process.env.APPIUM_TEST_SERVER_PORT || '4567', 10);
|
|
6
|
-
exports.MOCHA_TIMEOUT = 240000;
|
|
7
|
-
//# sourceMappingURL=utils.js.map
|
package/build/test/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../test/utils.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,WAAW,CAAC;AAC1D,QAAA,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,MAAM,EAAE,EAAE,CAAC,CAAC;AACnE,QAAA,aAAa,GAAG,MAAM,CAAC"}
|