Skip to content

Commit 1fe1ba2

Browse files
committed
refactor: wait for sb to load before taking snapshot
1 parent c5057c1 commit 1fe1ba2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.percy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ snapshot:
88
discovery:
99
network_idle_timeout: 750
1010
storybook:
11+
waitForTimeout: 1000
12+
# waits for data-carbon-theme attribute to exist before taking snapshot
13+
# if storybook is still loading, percy could take a snapshot of the storybook
14+
# loading spinner and cause flaky tests
15+
waitForSelector: [data-carbon-theme]
1116
include: ['/IBM Products/']
1217
exclude: [
1318
'/Internal/',

0 commit comments

Comments
 (0)