@applitools/eyes-storybook 3.26.0 → 3.26.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 CHANGED
@@ -3,6 +3,10 @@
3
3
  ## Unreleased
4
4
 
5
5
 
6
+ ## 3.26.1 - 2021/11/28
7
+
8
+ - add custom test properties to stories with query params
9
+
6
10
  ## 3.26.0 - 2021/11/26
7
11
 
8
12
  - add support for `queryParams` config property
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-storybook",
3
- "version": "3.26.0",
3
+ "version": "3.26.1",
4
4
  "description": "",
5
5
  "engines": {
6
6
  "node": ">=8.6.0"
@@ -31,6 +31,7 @@ function makeRenderStory({logger, testWindow, performance, timeItAsync}) {
31
31
  visualGridOptions,
32
32
  useDom,
33
33
  enablePatterns,
34
+ queryParam,
34
35
  } = eyesOptions;
35
36
 
36
37
  if (sizeMode) {
@@ -45,15 +46,21 @@ function makeRenderStory({logger, testWindow, performance, timeItAsync}) {
45
46
 
46
47
  logger.log(`running story ${title} with baseline ${baselineName}`);
47
48
 
49
+ const storyProperties = [
50
+ {name: 'Component name', value: kind},
51
+ {name: 'State', value: name},
52
+ ...(properties || []),
53
+ ];
54
+
55
+ if (queryParam) {
56
+ storyProperties.push(queryParam);
57
+ }
58
+
48
59
  const openParams = {
49
60
  testName: baselineName,
50
61
  displayName: title,
51
62
  browser: config.browser,
52
- properties: [
53
- {name: 'Component name', value: kind},
54
- {name: 'State', value: name},
55
- ...(properties || []),
56
- ],
63
+ properties: storyProperties,
57
64
  accessibilitySettings: accessibilityValidation,
58
65
  };
59
66