Skip to content

Commit 5b0fa9a

Browse files
authored
fix(vrt): Applitools error (#5153)
* adding check of test code supplied by Applitools * update timeouts on VRT tests
1 parent 790ec35 commit 5b0fa9a

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

.github/workflows/vrt.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
6464
- name: Applitools
6565
run: 'VRT_MODE=${{ env.VRT_MODE }} npx eyes-storybook'
66-
timeout-minutes: 30
66+
timeout-minutes: 40
6767
env:
6868
NODE_OPTIONS: --openssl-legacy-provider # per https://candid.technology/error-error-0308010c-digital-envelope-routines-unsupported/
6969

@@ -96,7 +96,7 @@ jobs:
9696
9797
- name: Applitools
9898
run: 'STORYBOOK_SLDS_VERSION=legacy npx eyes-storybook --conf applitools.legacy.config.js' # -u https://${REVIEW_APP_NAME}.herokuapp.com
99-
timeout-minutes: 30
99+
timeout-minutes: 40
100100
env:
101101
NODE_OPTIONS: --openssl-legacy-provider # per https://candid.technology/error-error-0308010c-digital-envelope-routines-unsupported/
102102

@@ -129,7 +129,7 @@ jobs:
129129
130130
- name: Applitools
131131
run: 'STORYBOOK_SLDS_VERSION=mobile npx eyes-storybook --conf applitools.mobile.config.js' # -u https://${REVIEW_APP_NAME}.herokuapp.com
132-
timeout-minutes: 30
132+
timeout-minutes: 40
133133
env:
134134
NODE_OPTIONS: --openssl-legacy-provider # per https://candid.technology/error-error-0308010c-digital-envelope-routines-unsupported/
135135

ui/components/map/index.stories.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,34 @@ const storyOptions = {
1111
isFullBleed: true
1212
};
1313

14+
export const DynamicText = () => {
15+
return (
16+
<div>
17+
This text is dynamic and should be ignored:{" "}
18+
<span style={{ color: "red" }} className="ignore-this">
19+
{Date.now()}
20+
</span>
21+
</div>
22+
);
23+
};
24+
25+
DynamicText.story = {
26+
name: "Dynamic text with ignore region",
27+
parameters: {
28+
eyes: {
29+
ignoreRegions: [
30+
{
31+
selector: ".ignore-this",
32+
},
33+
],
34+
scriptHooks: {
35+
beforeCaptureScreenshot:
36+
"document.querySelector('[data-testid=cancel-the-cancel] .eldyear3').style.overflow = 'visible';document.querySelector('[data-testid=cancel-the-cancel]').style.maxHeight = 'calc(100% - 16px)'",
37+
},
38+
},
39+
},
40+
};
41+
1442
generateStories(
1543
patternName,
1644
examples,

0 commit comments

Comments
 (0)