@applitools/eyes-playwright 1.36.0 → 1.36.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 +7 -0
- package/dist/fixture/getEyes.js +3 -1
- package/dist/fixture/index.js +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.36.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.36.0...js/eyes-playwright@1.36.1) (2025-02-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* playwright-windows ([#2789](https://github.com/Applitools-Dev/sdk/issues/2789)) ([1231309](https://github.com/Applitools-Dev/sdk/commit/1231309fbd3f88cf52aae3698392858c9ed8f6c5))
|
|
9
|
+
|
|
3
10
|
## [1.36.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright-v1.35.3...js/eyes-playwright@1.36.0) (2025-01-30)
|
|
4
11
|
|
|
5
12
|
|
package/dist/fixture/getEyes.js
CHANGED
|
@@ -4,12 +4,14 @@ exports.getEyes = void 0;
|
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const index_1 = require("../index");
|
|
6
6
|
const eyesConfiguration_1 = require("./defaults/eyesConfiguration");
|
|
7
|
+
const url_1 = require("url");
|
|
7
8
|
async function getEyes({ testInfo, eyesConfig, eyesRunner, page, }) {
|
|
8
9
|
var _a, _b, _c, _d;
|
|
9
10
|
if (page.__eyes) {
|
|
10
11
|
return page.__eyes;
|
|
11
12
|
}
|
|
12
|
-
const
|
|
13
|
+
const { configFile } = testInfo.config;
|
|
14
|
+
const playwrightConfig = (_b = (_a = ((configFile ? await import((0, url_1.pathToFileURL)(configFile).href) : {}))) === null || _a === void 0 ? void 0 : _a.use) === null || _b === void 0 ? void 0 : _b.eyesConfig;
|
|
13
15
|
const projectConfig = testInfo.project.use.eyesConfig;
|
|
14
16
|
const configuration = (0, eyesConfiguration_1.getFinalEyesConfiguration)({
|
|
15
17
|
playwrightConfig,
|
package/dist/fixture/index.js
CHANGED
|
@@ -32,6 +32,7 @@ var toHaveScreenshot_1 = require("./toHaveScreenshot");
|
|
|
32
32
|
Object.defineProperty(exports, "expect", { enumerable: true, get: function () { return toHaveScreenshot_1.expect; } });
|
|
33
33
|
const utils = __importStar(require("@applitools/utils"));
|
|
34
34
|
const reporter_1 = require("./reporter");
|
|
35
|
+
const url_1 = require("url");
|
|
35
36
|
exports.test = test_1.test.extend({
|
|
36
37
|
eyesConfig: [{}, { option: true }],
|
|
37
38
|
eyesRunner: [
|
|
@@ -132,9 +133,8 @@ function writeResultsWhenReady({ eyes, runner, testInfo }) {
|
|
|
132
133
|
}
|
|
133
134
|
async function getEyesConfigForWorker(workerInfo) {
|
|
134
135
|
var _a, _b, _c;
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
: {}))) === null || _a === void 0 ? void 0 : _a.use) === null || _b === void 0 ? void 0 : _b.eyesConfig;
|
|
136
|
+
const { configFile } = workerInfo.config;
|
|
137
|
+
const playwrightConfig = (_b = (_a = ((configFile ? await import((0, url_1.pathToFileURL)(configFile).href) : {}))) === null || _a === void 0 ? void 0 : _a.use) === null || _b === void 0 ? void 0 : _b.eyesConfig;
|
|
138
138
|
const projectConfig = workerInfo.project.use.eyesConfig;
|
|
139
139
|
const eyesConfig = {
|
|
140
140
|
...playwrightConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-playwright",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.1",
|
|
4
4
|
"description": "Applitools Eyes SDK for Playwright",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-playwright",
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
"generate:tests": "NODE_OPTIONS='--experimental-import-meta-resolve --experimental-loader=@applitools/generic/dist/code-loader.js' generic ./test/generic/config.mjs",
|
|
54
54
|
"test": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(uuidgen).log\" APPLITOOLS_BATCH_NAME='JS Tests: eyes-playwright' APPLITOOLS_BATCH_ID=$(uuidgen) run --top-level mocha './**/*.spec.{js,ts}' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
|
|
55
55
|
"test:coverage": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(uuidgen).log\" APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-playwright' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
|
|
56
|
-
"test:fixture": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(
|
|
56
|
+
"test:fixture": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(npx uuid).log\" APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-playwright-fixture' APPLITOOLS_BATCH_ID=$(npx uuid) run playwright test",
|
|
57
57
|
"setup": "run playwright:setup",
|
|
58
58
|
"playwright:setup": "yarn playwright install --with-deps chromium firefox webkit",
|
|
59
59
|
"up:framework": "echo \"$(jq '.devDependencies.playwright = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@applitools/eyes": "1.32.
|
|
62
|
+
"@applitools/eyes": "1.32.1",
|
|
63
63
|
"@applitools/spec-driver-playwright": "1.5.7",
|
|
64
64
|
"@applitools/utils": "1.7.7",
|
|
65
65
|
"@inquirer/prompts": "7.0.1",
|