@applitools/eyes-storybook 3.50.9 → 3.51.0
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 +64 -0
- package/package.json +7 -8
- package/src/initPage.js +2 -9
- package/src/waitFor.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.51.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook-v3.50.10...js/eyes-storybook@3.51.0) (2024-10-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* upgrade puppeteer to 23.5.1 ([#2457](https://github.com/Applitools-Dev/sdk/issues/2457)) ([62c2160](https://github.com/Applitools-Dev/sdk/commit/62c2160af3cd0ecc19a88c9668726d28d5d22e1a))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* storybook with yarn pnp ([#2350](https://github.com/Applitools-Dev/sdk/issues/2350)) ([1b67e8f](https://github.com/Applitools-Dev/sdk/commit/1b67e8f5e37ed97aed55f38be1827db71243e38c))
|
|
14
|
+
* support reloadPagePerStory ([#2438](https://github.com/Applitools-Dev/sdk/issues/2438)) ([df457af](https://github.com/Applitools-Dev/sdk/commit/df457afcaf60bf272eec5b868401a1a84c98fdd4))
|
|
15
|
+
* support storybook 8 ([#2293](https://github.com/Applitools-Dev/sdk/issues/2293)) ([3611510](https://github.com/Applitools-Dev/sdk/commit/3611510cb7fa56f6930f0a66f9bab41a3acf0f7a))
|
|
16
|
+
* trigger release ([88c4f81](https://github.com/Applitools-Dev/sdk/commit/88c4f812bd92eae61ee8ebbee5da0d64ad8c8859))
|
|
17
|
+
* tunnel client ([670b184](https://github.com/Applitools-Dev/sdk/commit/670b1843ce43347d97e19fa02f8bc630332ff414))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Dependencies
|
|
21
|
+
|
|
22
|
+
* @applitools/snippets bumped to 2.5.1
|
|
23
|
+
#### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* isStaleElement error ([#2567](https://github.com/Applitools-Dev/sdk/issues/2567)) ([2675086](https://github.com/Applitools-Dev/sdk/commit/2675086aa28589082249e2958942ee29a5f2ef12))
|
|
26
|
+
* @applitools/core-base bumped to 1.18.0
|
|
27
|
+
#### Features
|
|
28
|
+
|
|
29
|
+
* ability to download side by side with highlighted diffs (2419) ([#2530](https://github.com/Applitools-Dev/sdk/issues/2530)) ([e06ce69](https://github.com/Applitools-Dev/sdk/commit/e06ce699f30e9e444ac58dafdf5989ff1c96ca1c))
|
|
30
|
+
* dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
|
|
31
|
+
* setting up SCM information automatically ([#2542](https://github.com/Applitools-Dev/sdk/issues/2542)) ([696461a](https://github.com/Applitools-Dev/sdk/commit/696461af3f8e2e3ed94eb78fed5ead6233bd16b2))
|
|
32
|
+
* @applitools/driver bumped to 1.19.3
|
|
33
|
+
|
|
34
|
+
* @applitools/spec-driver-webdriver bumped to 1.1.15
|
|
35
|
+
|
|
36
|
+
* @applitools/spec-driver-selenium bumped to 1.5.86
|
|
37
|
+
|
|
38
|
+
* @applitools/spec-driver-puppeteer bumped to 1.4.15
|
|
39
|
+
|
|
40
|
+
* @applitools/screenshoter bumped to 3.9.0
|
|
41
|
+
#### Features
|
|
42
|
+
|
|
43
|
+
* capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
* @applitools/nml-client bumped to 1.8.13
|
|
48
|
+
|
|
49
|
+
* @applitools/ec-client bumped to 1.9.9
|
|
50
|
+
|
|
51
|
+
* @applitools/core bumped to 4.21.0
|
|
52
|
+
#### Features
|
|
53
|
+
|
|
54
|
+
* add chrome emulation devices ([#2559](https://github.com/Applitools-Dev/sdk/issues/2559)) ([0499aaf](https://github.com/Applitools-Dev/sdk/commit/0499aaf3bb809d2ac0105b4493e6f6bb8730ea3f))
|
|
55
|
+
* capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
|
|
56
|
+
* dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
|
|
57
|
+
* setting up SCM information automatically ([#2542](https://github.com/Applitools-Dev/sdk/issues/2542)) ([696461a](https://github.com/Applitools-Dev/sdk/commit/696461af3f8e2e3ed94eb78fed5ead6233bd16b2))
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
#### Bug Fixes
|
|
61
|
+
|
|
62
|
+
* don't remove offline execution folder after running ([654e195](https://github.com/Applitools-Dev/sdk/commit/654e195dd50dc7dab93dd907ec26d788549c6e81))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
3
67
|
## [3.50.9](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.50.8...js/eyes-storybook@3.50.9) (2024-09-10)
|
|
4
68
|
|
|
5
69
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-storybook",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.51.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -54,20 +54,20 @@
|
|
|
54
54
|
"up:framework": "cd test/fixtures/storybook-versions/${APPLITOOLS_FRAMEWORK_VERSION} && npm ci"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@applitools/core": "4.
|
|
58
|
-
"@applitools/driver": "1.19.
|
|
57
|
+
"@applitools/core": "4.21.0",
|
|
58
|
+
"@applitools/driver": "1.19.3",
|
|
59
59
|
"@applitools/functional-commons": "1.6.0",
|
|
60
60
|
"@applitools/logger": "2.0.18",
|
|
61
61
|
"@applitools/monitoring-commons": "1.0.19",
|
|
62
|
-
"@applitools/spec-driver-puppeteer": "1.4.
|
|
63
|
-
"@applitools/ufg-client": "1.
|
|
62
|
+
"@applitools/spec-driver-puppeteer": "1.4.15",
|
|
63
|
+
"@applitools/ufg-client": "1.13.1",
|
|
64
64
|
"@applitools/utils": "1.7.4",
|
|
65
65
|
"boxen": "4.2.0",
|
|
66
66
|
"chalk": "3.0.0",
|
|
67
67
|
"detect-port": "1.3.0",
|
|
68
68
|
"lodash": "4.17.21",
|
|
69
69
|
"ora": "3.4.0",
|
|
70
|
-
"puppeteer": "
|
|
70
|
+
"puppeteer": "23.5.1",
|
|
71
71
|
"semver": "7.6.2",
|
|
72
72
|
"strip-ansi": "6.0.0",
|
|
73
73
|
"throat": "6.0.2",
|
|
@@ -75,7 +75,6 @@
|
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@applitools/bongo": "^5.10.0",
|
|
78
|
-
"@applitools/sdk-shared": "0.9.15",
|
|
79
78
|
"@applitools/snaptdout": "^1.0.1",
|
|
80
79
|
"@applitools/test-server": "^1.2.2",
|
|
81
80
|
"@applitools/test-utils": "^1.5.17",
|
|
@@ -96,7 +95,7 @@
|
|
|
96
95
|
"ua-parser-js": "^0.7.21"
|
|
97
96
|
},
|
|
98
97
|
"engines": {
|
|
99
|
-
"node": ">=
|
|
98
|
+
"node": ">=18.0.0"
|
|
100
99
|
},
|
|
101
100
|
"publishConfig": {
|
|
102
101
|
"access": "public"
|
package/src/initPage.js
CHANGED
|
@@ -3,17 +3,10 @@ const browserLog = require('./browserLog');
|
|
|
3
3
|
const fakeIE = require('./fakeIE');
|
|
4
4
|
|
|
5
5
|
function makeInitPage({iframeUrl, config, browser, logger, getTransitiongIntoIE, getRenderIE}) {
|
|
6
|
-
const browserContexts = [browser.defaultBrowserContext()];
|
|
7
|
-
|
|
8
6
|
return async function initPage({pageId, pagePool}) {
|
|
9
7
|
logger.log('initializing puppeteer page number ', pageId);
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
// TODO after dropping support for Node.js 16 we can upgrade to Puppeteer >= 22 and then `createIncognitoBrowserContext` should be renamed to `createBrowserContext` (https://github.com/puppeteer/puppeteer/blob/main/packages/puppeteer-core/CHANGELOG.md#2200-2024-02-05)
|
|
13
|
-
const browserContext = await browser.createIncognitoBrowserContext();
|
|
14
|
-
browserContexts.push(browserContext);
|
|
15
|
-
}
|
|
16
|
-
const page = await browserContexts[browserContexts.length - 1].newPage();
|
|
8
|
+
const browserContext = await browser.createBrowserContext();
|
|
9
|
+
const page = await browserContext.newPage();
|
|
17
10
|
|
|
18
11
|
if (config.viewportSize) {
|
|
19
12
|
await page.setViewport(config.viewportSize);
|
package/src/waitFor.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
const {setTimeout} = require('node:timers/promises');
|
|
2
|
+
|
|
1
3
|
async function waitFor(page, waitOn) {
|
|
2
4
|
if (typeof waitOn === 'function') {
|
|
3
5
|
return await page.waitForFunction(waitOn);
|
|
4
6
|
} else if (typeof waitOn === 'number') {
|
|
5
|
-
return await
|
|
7
|
+
return await setTimeout(waitOn);
|
|
6
8
|
} else if (typeof waitOn === 'string') {
|
|
7
9
|
return waitOn.startsWith('//') || waitOn.startsWith('..')
|
|
8
10
|
? await page.waitForXPath(waitOn)
|