@applitools/eyes-playwright 1.39.3 → 1.39.5
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 +65 -0
- package/dist/fixture/cli.js +12 -5
- package/dist/fixture/getEyes.js +24 -0
- package/dist/fixture/reporter.js +4 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,70 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.39.5](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.39.4...js/eyes-playwright@1.39.5) (2025-09-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* isDisabled with reporter | FLD-3528 ([#3198](https://github.com/Applitools-Dev/sdk/issues/3198)) ([98ad069](https://github.com/Applitools-Dev/sdk/commit/98ad069fc23a74ec836a660e1744727d6b2e0f17))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/dom-shared bumped to 1.1.1
|
|
14
|
+
#### Code Refactoring
|
|
15
|
+
|
|
16
|
+
* dom shared js -> ts ([#3202](https://github.com/Applitools-Dev/sdk/issues/3202)) ([c6d6b77](https://github.com/Applitools-Dev/sdk/commit/c6d6b77179d48539cc40f609f150f380aa48d6bb))
|
|
17
|
+
* @applitools/tunnel-client bumped to 1.11.0
|
|
18
|
+
#### Features
|
|
19
|
+
|
|
20
|
+
* mask apiKey and eyesServerUrl from the logs | AD-10661 ([#3200](https://github.com/Applitools-Dev/sdk/issues/3200)) ([eaba565](https://github.com/Applitools-Dev/sdk/commit/eaba565898d8e72745a1e95c9b17ae77c396ca14))
|
|
21
|
+
* report to coralogix | AD-10945 ([#3191](https://github.com/Applitools-Dev/sdk/issues/3191)) ([2f57db1](https://github.com/Applitools-Dev/sdk/commit/2f57db162db4d3dbe4cdab06096f0d183af94946))
|
|
22
|
+
* @applitools/core bumped to 4.45.0
|
|
23
|
+
#### Features
|
|
24
|
+
|
|
25
|
+
* respect NO_PROXY for WebDriver | AD-10927 | FLD-2702 ([#3186](https://github.com/Applitools-Dev/sdk/issues/3186)) ([8e53d9a](https://github.com/Applitools-Dev/sdk/commit/8e53d9a7c1b6fe38c11d63fad915fc89b199a749))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
* @applitools/dom-snapshot bumped to 4.13.5
|
|
30
|
+
|
|
31
|
+
* @applitools/dom-capture bumped to 11.6.3
|
|
32
|
+
|
|
33
|
+
* @applitools/ec-client bumped to 1.12.5
|
|
34
|
+
|
|
35
|
+
* @applitools/eyes bumped to 1.36.4
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [1.39.4](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.39.3...js/eyes-playwright@1.39.4) (2025-08-27)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Bug Fixes
|
|
42
|
+
|
|
43
|
+
* execute the playwright example with api key in env var | AD-10543 ([#3083](https://github.com/Applitools-Dev/sdk/issues/3083)) ([f842cf9](https://github.com/Applitools-Dev/sdk/commit/f842cf98bf91d23df1b17bfedeae1174883603b1))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Dependencies
|
|
47
|
+
|
|
48
|
+
* @applitools/dom-snapshot bumped to 4.13.4
|
|
49
|
+
#### Bug Fixes
|
|
50
|
+
|
|
51
|
+
* canvas blob ([#3194](https://github.com/Applitools-Dev/sdk/issues/3194)) ([d90cfca](https://github.com/Applitools-Dev/sdk/commit/d90cfcaa78df93d4bd8992d77f41eb93edd56f4c))
|
|
52
|
+
* canvas blobs ([#3192](https://github.com/Applitools-Dev/sdk/issues/3192)) ([f15ac4e](https://github.com/Applitools-Dev/sdk/commit/f15ac4ed68cc1746ee6cef51f2258388428fd1c7))
|
|
53
|
+
* @applitools/core bumped to 4.44.5
|
|
54
|
+
#### Bug Fixes
|
|
55
|
+
|
|
56
|
+
* browser extension | FLD-3221 ([#3185](https://github.com/Applitools-Dev/sdk/issues/3185)) ([8212155](https://github.com/Applitools-Dev/sdk/commit/8212155e51ce919beb3bcecc7da1970da4a65be7))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
* @applitools/eyes bumped to 1.36.3
|
|
61
|
+
#### Bug Fixes
|
|
62
|
+
|
|
63
|
+
* browser extension | FLD-3221 ([#3185](https://github.com/Applitools-Dev/sdk/issues/3185)) ([8212155](https://github.com/Applitools-Dev/sdk/commit/8212155e51ce919beb3bcecc7da1970da4a65be7))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
3
68
|
## [1.39.3](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.39.2...js/eyes-playwright@1.39.3) (2025-08-21)
|
|
4
69
|
|
|
5
70
|
|
package/dist/fixture/cli.js
CHANGED
|
@@ -157,16 +157,17 @@ async function init(args) {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
async function runExample() {
|
|
160
|
-
const playwrightTmpConfigPath = '
|
|
160
|
+
const playwrightTmpConfigPath = path_1.default.join(process.cwd(), 'eyes-examples', 'playwright.tmp.config.ts');
|
|
161
161
|
const playwrightTmpExists = fs_1.default.existsSync(playwrightTmpConfigPath);
|
|
162
162
|
await writeTmpPlaywrightConfig();
|
|
163
163
|
await runPlaywrightCommand();
|
|
164
164
|
await cleanupTmpPlaywrightConfig();
|
|
165
165
|
async function writeTmpPlaywrightConfig() {
|
|
166
|
+
var _a;
|
|
166
167
|
if (!playwrightTmpExists) {
|
|
167
168
|
const playwrighConfig = await fs_1.promises.readFile('./playwright.config.ts', 'utf-8');
|
|
168
169
|
const apikeyMatch = playwrighConfig.match(/apiKey: ([^,]+)/);
|
|
169
|
-
const apiKey = apikeyMatch ? apikeyMatch[1] :
|
|
170
|
+
const apiKey = (_a = apikeyMatch === null || apikeyMatch === void 0 ? void 0 : apikeyMatch[1]) === null || _a === void 0 ? void 0 : _a.replace(/[^a-zA-Z0-9]/g, '');
|
|
170
171
|
const serverUrlMatch = playwrighConfig.match(/serverUrl: ([^,]+)/);
|
|
171
172
|
const serverUrl = serverUrlMatch ? serverUrlMatch[1] : undefined;
|
|
172
173
|
const playwrightTmpConfig = `import { defineConfig, devices } from '@playwright/test';
|
|
@@ -177,8 +178,12 @@ export default defineConfig<EyesFixture>({
|
|
|
177
178
|
reporter: [['@applitools/eyes-playwright/reporter', {open: 'always', outputFolder: './eyes-playwright-report'}]],
|
|
178
179
|
use: {
|
|
179
180
|
eyesConfig: {
|
|
180
|
-
|
|
181
|
-
|
|
181
|
+
${apiKey
|
|
182
|
+
? `apiKey: '${apiKey}'`
|
|
183
|
+
: "// apiKey: '' // alternatively, set this via environment variable APPLITOOLS_API_KEY"},
|
|
184
|
+
${serverUrl
|
|
185
|
+
? `serverUrl: ${serverUrl}`
|
|
186
|
+
: "// serverUrl: 'https://eyes.applitools.com' // alternatively, set this via environment variable APPLITOOLS_SERVER_URL"}
|
|
182
187
|
}
|
|
183
188
|
}
|
|
184
189
|
})`;
|
|
@@ -191,7 +196,9 @@ export default defineConfig<EyesFixture>({
|
|
|
191
196
|
}
|
|
192
197
|
}
|
|
193
198
|
async function runPlaywrightCommand() {
|
|
194
|
-
|
|
199
|
+
// Use path normalization and quotes to support Windows paths with spaces/backslashes
|
|
200
|
+
const quotedConfigPath = `"${playwrightTmpConfigPath}"`;
|
|
201
|
+
await utils.process.sh(`npx playwright test --config ${quotedConfigPath}`, {
|
|
195
202
|
spawnOptions: { stdio: 'inherit' },
|
|
196
203
|
});
|
|
197
204
|
}
|
package/dist/fixture/getEyes.js
CHANGED
|
@@ -37,7 +37,31 @@ async function getEyes({ testInfo, eyesConfig, eyesRunner, page, }) {
|
|
|
37
37
|
eyes.check = makeStep('eyes.check', eyes.check.bind(eyes));
|
|
38
38
|
eyes.close = makeStep('eyes.close', eyes.close.bind(eyes));
|
|
39
39
|
eyes.closeAsync = makeStep('eyes.closeAsync (without exception)', eyes.closeAsync.bind(eyes));
|
|
40
|
+
// INTERNAL DEBUG CALLBACKS - Execute beforeOpen callback if provided
|
|
41
|
+
const mergedConfig = { ...playwrightConfig, ...projectConfig, ...eyesConfig };
|
|
42
|
+
if (mergedConfig.beforeOpen) {
|
|
43
|
+
try {
|
|
44
|
+
await mergedConfig.beforeOpen();
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
// Don't let callback failures break the main flow, just log the error
|
|
48
|
+
// eslint-disable-next-line no-console
|
|
49
|
+
console.warn('👀 beforeOpen callback failed:', error);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
40
52
|
await eyes.open(page, configuration.appName, configuration.testName);
|
|
53
|
+
// INTERNAL DEBUG CALLBACKS - Execute afterOpen callback if provided
|
|
54
|
+
if (mergedConfig.afterOpen) {
|
|
55
|
+
try {
|
|
56
|
+
await mergedConfig.afterOpen();
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
// Don't let callback failures break the main flow, just log the error
|
|
60
|
+
// eslint-disable-next-line no-console
|
|
61
|
+
console.warn('👀 afterOpen callback failed:', error);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
;
|
|
41
65
|
page.__eyes = eyes;
|
|
42
66
|
eyesRunner.isUsed = true;
|
|
43
67
|
return eyes;
|
package/dist/fixture/reporter.js
CHANGED
|
@@ -167,6 +167,10 @@ exports.InternalData = {
|
|
|
167
167
|
async write({ testInfo, data, eyes, uuid }) {
|
|
168
168
|
var _a, _b;
|
|
169
169
|
const logger = ((_a = eyes.getLogger) === null || _a === void 0 ? void 0 : _a.call(eyes)) || (0, logger_1.makeLogger)();
|
|
170
|
+
if (!data || data.length === 0) {
|
|
171
|
+
logger.log('No data to write for test:', testInfo.title);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
170
174
|
const uploadUrl = eyes._eyes.test.account.batchExecReportsUrl
|
|
171
175
|
.replace('__batch_id__', uuid)
|
|
172
176
|
.replace('__report_id__', uuid);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-playwright",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.5",
|
|
4
4
|
"description": "Applitools Eyes SDK for Playwright",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-playwright",
|
|
@@ -59,7 +59,7 @@
|
|
|
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.36.
|
|
62
|
+
"@applitools/eyes": "1.36.4",
|
|
63
63
|
"@applitools/req": "1.8.2",
|
|
64
64
|
"@applitools/spec-driver-playwright": "1.7.3",
|
|
65
65
|
"@applitools/utils": "1.11.1",
|