@applitools/spec-driver-browser-extension 1.0.0 → 1.0.1
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 +13 -0
- package/dist/index.js +3 -2
- package/dist/spec-driver.js +1 -1
- package/package.json +20 -35
- package/types/index.d.ts +3 -1
- package/types/refer.d.ts +1 -1
- package/types/spec-driver.d.ts +4 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.0.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-browser-extension-v1.0.0...js/spec-driver-browser-extension@1.0.1) (2023-06-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* update some dependencies
|
|
9
|
+
* The following workspace dependencies were updated
|
|
10
|
+
* dependencies
|
|
11
|
+
* @applitools/utils bumped from 1.3.37 to 1.4.0
|
|
12
|
+
* devDependencies
|
|
13
|
+
* @applitools/spec-driver-playwright bumped from ^1.3.13 to ^1.3.14
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
|
|
30
|
-
exports.spec = __importStar(require("./spec-driver"));
|
|
29
|
+
const spec = __importStar(require("./spec-driver"));
|
|
31
30
|
__exportStar(require("./refer"), exports);
|
|
31
|
+
__exportStar(require("./spec-driver"), exports);
|
|
32
|
+
exports.default = spec;
|
package/dist/spec-driver.js
CHANGED
|
@@ -27,8 +27,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.getDriverInfo = exports.getUrl = exports.getTitle = exports.takeScreenshot = exports.getCookies = exports.setWindowSize = exports.getWindowSize = exports.findElements = exports.findElement = exports.childContext = exports.parentContext = exports.mainContext = exports.executeScript = exports.isStaleElementError = exports.extractContext = exports.transformSelector = exports.isSelector = exports.isElement = exports.isContext = exports.isDriver = void 0;
|
|
30
|
-
const webextension_polyfill_1 = __importDefault(require("webextension-polyfill"));
|
|
31
30
|
const utils = __importStar(require("@applitools/utils"));
|
|
31
|
+
const webextension_polyfill_1 = __importDefault(require("webextension-polyfill"));
|
|
32
32
|
// #region UTILITY
|
|
33
33
|
function isDriver(driver) {
|
|
34
34
|
return utils.types.has(driver, ['windowId', 'tabId']);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/spec-driver-browser-extension",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"playwright",
|
|
6
6
|
"chrome devtools protocol",
|
|
@@ -25,9 +25,6 @@
|
|
|
25
25
|
"name": "Applitools Team",
|
|
26
26
|
"email": "team@applitools.com"
|
|
27
27
|
},
|
|
28
|
-
"aliases": [
|
|
29
|
-
"spec-browser-extension"
|
|
30
|
-
],
|
|
31
28
|
"main": "./dist/index.js",
|
|
32
29
|
"types": "./types/index.d.ts",
|
|
33
30
|
"files": [
|
|
@@ -35,43 +32,31 @@
|
|
|
35
32
|
"types"
|
|
36
33
|
],
|
|
37
34
|
"scripts": {
|
|
38
|
-
"lint": "
|
|
39
|
-
"build": "
|
|
40
|
-
"
|
|
41
|
-
"test": "yarn
|
|
42
|
-
"
|
|
43
|
-
"test:sanity": "yarn test",
|
|
44
|
-
"deps": "bongo deps",
|
|
45
|
-
"gh:test": "gh workflow run test.yml --ref $(git rev-parse --abbrev-ref HEAD) -f packages='spec-browser-extension' -f links='types utils test-utils'",
|
|
46
|
-
"gh:publish": "gh workflow run publish-spec-browser-extension.yml --ref $(git rev-parse --abbrev-ref HEAD)",
|
|
47
|
-
"preversion": "bongo preversion",
|
|
48
|
-
"version": "bongo version",
|
|
49
|
-
"postversion": "bongo postversion --skip-release-notification"
|
|
50
|
-
},
|
|
51
|
-
"husky": {
|
|
52
|
-
"hooks": {
|
|
53
|
-
"pre-push": "yarn bongo lint"
|
|
54
|
-
}
|
|
35
|
+
"lint": "run --top-level eslint '**/*.ts'",
|
|
36
|
+
"build": "run --top-level tsc --project ./tsconfig.build.json",
|
|
37
|
+
"build:extension": "webpack --config ./test/fixtures/extension/webpack.config.babel.js",
|
|
38
|
+
"test": "yarn build:extension && run --top-level mocha './test/**/*.spec.ts' --exit",
|
|
39
|
+
"setup": "run --top-level xvfb:setup"
|
|
55
40
|
},
|
|
56
41
|
"dependencies": {
|
|
57
|
-
"@applitools/utils": "1.
|
|
42
|
+
"@applitools/utils": "1.4.0",
|
|
58
43
|
"webextension-polyfill": "0.10.0"
|
|
59
44
|
},
|
|
60
45
|
"devDependencies": {
|
|
61
|
-
"@applitools/api-extractor": "^1.2.
|
|
62
|
-
"@applitools/
|
|
63
|
-
"@applitools/
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
46
|
+
"@applitools/api-extractor": "^1.2.21",
|
|
47
|
+
"@applitools/spec-driver-playwright": "^1.3.14",
|
|
48
|
+
"@applitools/test-utils": "^1.5.17",
|
|
49
|
+
"@babel/core": "^7.22.5",
|
|
50
|
+
"@babel/preset-env": "^7.22.5",
|
|
51
|
+
"@babel/register": "^7.22.5",
|
|
66
52
|
"@types/mocha": "^9.0.0",
|
|
67
53
|
"@types/node": "12",
|
|
68
54
|
"@types/webextension-polyfill": "^0.9.1",
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"typescript": "^4.8.4"
|
|
55
|
+
"babel-loader": "^9.1.2",
|
|
56
|
+
"copy-webpack-plugin": "^11.0.0",
|
|
57
|
+
"core-js": "^3.31.0",
|
|
58
|
+
"playwright": "^1.34.3",
|
|
59
|
+
"webpack": "^5.75.0",
|
|
60
|
+
"webpack-cli": "^5.0.1"
|
|
76
61
|
}
|
|
77
|
-
}
|
|
62
|
+
}
|
package/types/index.d.ts
CHANGED
package/types/refer.d.ts
CHANGED
package/types/spec-driver.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { Size } from '@applitools/utils';
|
|
2
2
|
import type { Ref } from './refer';
|
|
3
|
-
|
|
3
|
+
type CommonSelector<TSelector = never> = string | {
|
|
4
4
|
selector: TSelector | string;
|
|
5
5
|
type?: string;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type Driver = {
|
|
8
8
|
windowId: number;
|
|
9
9
|
tabId: number;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type Context = {
|
|
12
12
|
windowId: number;
|
|
13
13
|
tabId: number;
|
|
14
14
|
frameId: number;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
type Element = globalThis.Element | Ref;
|
|
17
17
|
declare global {
|
|
18
18
|
interface Window {
|
|
19
19
|
refer: any;
|