appium-safari-driver 3.2.0 → 3.2.3
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/.azure-pipelines.yml +26 -3
- package/.github/workflows/publish.js.yml +11 -4
- package/README.md +21 -24
- package/build/test/functional/desktop-driver-e2e-specs.js +1 -13
- package/build/test/functional/mobile-driver-e2e-specs.js +1 -12
- package/build/test/utils.js +3 -3
- package/npm-shrinkwrap.json +9128 -0
- package/package.json +2 -4
- package/test/functional/desktop-driver-e2e-specs.js +0 -11
- package/test/functional/mobile-driver-e2e-specs.js +0 -10
- package/test/utils.js +2 -2
- package/build/test/server.js +0 -21
- package/test/server.js +0 -8
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"appium",
|
|
6
6
|
"safari"
|
|
7
7
|
],
|
|
8
|
-
"version": "3.2.
|
|
8
|
+
"version": "3.2.3",
|
|
9
9
|
"author": "appium",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"repository": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"node-simctl": "^7.0.1",
|
|
41
41
|
"portscanner": "2.2.0",
|
|
42
42
|
"source-map-support": "^0.x",
|
|
43
|
-
"teen_process": "^
|
|
43
|
+
"teen_process": "^2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "gulp transpile",
|
|
@@ -69,8 +69,6 @@
|
|
|
69
69
|
"@babel/core": "^7.16.0",
|
|
70
70
|
"@babel/eslint-parser": "^7.16.3",
|
|
71
71
|
"@semantic-release/git": "^10.0.1",
|
|
72
|
-
"appium": "^2.0.0-beta.40",
|
|
73
|
-
"appium-safari-driver": "file:.",
|
|
74
72
|
"chai": "^4.1.2",
|
|
75
73
|
"chai-as-promised": "^7.1.1",
|
|
76
74
|
"eslint-config-prettier": "^8.5.0",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { remote } from 'webdriverio';
|
|
2
|
-
import { startServer } from '../server';
|
|
3
2
|
import chaiAsPromised from 'chai-as-promised';
|
|
4
3
|
import chai from 'chai';
|
|
5
4
|
import { HOST, PORT, MOCHA_TIMEOUT } from '../utils';
|
|
@@ -17,17 +16,7 @@ const CAPS = {
|
|
|
17
16
|
describe('Desktop SafariDriver', function () {
|
|
18
17
|
this.timeout(MOCHA_TIMEOUT);
|
|
19
18
|
|
|
20
|
-
let server;
|
|
21
19
|
let driver;
|
|
22
|
-
before(async function () {
|
|
23
|
-
server = await startServer(PORT, HOST);
|
|
24
|
-
});
|
|
25
|
-
after(async function () {
|
|
26
|
-
if (server) {
|
|
27
|
-
await server.close();
|
|
28
|
-
server = null;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
20
|
beforeEach(async function () {
|
|
32
21
|
driver = await remote({
|
|
33
22
|
hostname: HOST,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { remote } from 'webdriverio';
|
|
2
|
-
import { startServer } from '../server';
|
|
3
2
|
import chaiAsPromised from 'chai-as-promised';
|
|
4
3
|
import chai from 'chai';
|
|
5
4
|
import Simctl from 'node-simctl';
|
|
@@ -22,7 +21,6 @@ const CAPS = {
|
|
|
22
21
|
describe('Mobile SafariDriver', function () {
|
|
23
22
|
this.timeout(MOCHA_TIMEOUT);
|
|
24
23
|
|
|
25
|
-
let server;
|
|
26
24
|
let driver;
|
|
27
25
|
before(async function () {
|
|
28
26
|
if (process.env.CI) {
|
|
@@ -44,14 +42,6 @@ describe('Mobile SafariDriver', function () {
|
|
|
44
42
|
await simctl.bootDevice();
|
|
45
43
|
await simctl.startBootMonitor();
|
|
46
44
|
}
|
|
47
|
-
|
|
48
|
-
server = await startServer(PORT, HOST);
|
|
49
|
-
});
|
|
50
|
-
after(async function () {
|
|
51
|
-
if (server) {
|
|
52
|
-
await server.close();
|
|
53
|
-
server = null;
|
|
54
|
-
}
|
|
55
45
|
});
|
|
56
46
|
beforeEach(async function () {
|
|
57
47
|
driver = await remote({
|
package/test/utils.js
CHANGED
package/build/test/server.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.startServer = startServer;
|
|
7
|
-
|
|
8
|
-
require("source-map-support/register");
|
|
9
|
-
|
|
10
|
-
var _appium = require("appium");
|
|
11
|
-
|
|
12
|
-
async function startServer(port, address, relaxedSecurityEnabled = false) {
|
|
13
|
-
return await (0, _appium.main)({
|
|
14
|
-
port,
|
|
15
|
-
address,
|
|
16
|
-
relaxedSecurityEnabled
|
|
17
|
-
});
|
|
18
|
-
}require('source-map-support').install();
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC9zZXJ2ZXIuanMiLCJuYW1lcyI6WyJzdGFydFNlcnZlciIsInBvcnQiLCJhZGRyZXNzIiwicmVsYXhlZFNlY3VyaXR5RW5hYmxlZCIsInN0YXJ0QXBwaXVtIl0sInNvdXJjZVJvb3QiOiIuLi8uLiIsInNvdXJjZXMiOlsidGVzdC9zZXJ2ZXIuanMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgbWFpbiBhcyBzdGFydEFwcGl1bSB9IGZyb20gJ2FwcGl1bSc7XG5cbmFzeW5jIGZ1bmN0aW9uIHN0YXJ0U2VydmVyIChwb3J0LCBhZGRyZXNzLCByZWxheGVkU2VjdXJpdHlFbmFibGVkID0gZmFsc2UpIHtcbiAgLy8gaHR0cHM6Ly9naXRodWIuY29tL2FwcGl1bS9hcHBpdW0vYmxvYi8yLjAvcGFja2FnZXMvc2NoZW1hL2xpYi9hcHBpdW0tY29uZmlnLnNjaGVtYS5qc29uXG4gIHJldHVybiBhd2FpdCBzdGFydEFwcGl1bSh7cG9ydCwgYWRkcmVzcywgcmVsYXhlZFNlY3VyaXR5RW5hYmxlZH0pO1xufVxuXG5leHBvcnQgeyBzdGFydFNlcnZlciB9O1xuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTs7QUFFQSxlQUFlQSxXQUFmLENBQTRCQyxJQUE1QixFQUFrQ0MsT0FBbEMsRUFBMkNDLHNCQUFzQixHQUFHLEtBQXBFLEVBQTJFO0VBRXpFLE9BQU8sTUFBTSxJQUFBQyxZQUFBLEVBQVk7SUFBQ0gsSUFBRDtJQUFPQyxPQUFQO0lBQWdCQztFQUFoQixDQUFaLENBQWI7QUFDRCJ9
|
package/test/server.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { main as startAppium } from 'appium';
|
|
2
|
-
|
|
3
|
-
async function startServer (port, address, relaxedSecurityEnabled = false) {
|
|
4
|
-
// https://github.com/appium/appium/blob/2.0/packages/schema/lib/appium-config.schema.json
|
|
5
|
-
return await startAppium({port, address, relaxedSecurityEnabled});
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export { startServer };
|