Skip to content

Commit

Permalink
chore: increase percy stability in ci checks (#6467)
Browse files Browse the repository at this point in the history
* chore: increase percy stability in ci checks

* fix: network idle timeout in percy config

* fix: network idle timeout within recommended treshold

* chore: clean up and test with less timeout
  • Loading branch information
devadula-nandan authored Nov 19, 2024
1 parent 711eb72 commit 98b30f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ snapshot:
- 360
- 1366
minHeight: 1024
discovery:
network_idle_timeout: 500
storybook:
include: ['/IBM Products/']
exclude: [
'/Datagrid/*',
'/DataSpreadsheet/',
'Cascade: With Grid',
'Cascade: Without Grid',
# to be fixed
'/MultiAddSelect: With Avatars/', # avoid dynamic avatar color generation
'/Tag set/TagSet: Hundreds Of Tags', # avoid dynamic tag color generation
'/Page header/PageHeader: Page header with all items, pre-collapsed', # takes random time, to collapse on initial load
'/Page header/PageHeader: Page header with all items, pre-collapsed', # takes random time, to collapse on initial load.
'/Tag set/TagSet: Many Tags', # takes time to calculate the overflow, causing random layout shift
]
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@ export default {
docs: { page: DocsPage },
controls: { sort: 'requiredFirst' },
percy: {
waitForSelector: [
`button.${blockClass}__create-button`,
`.${blockClass}__influencer`,
],
waitForSelector: `button.${blockClass}__create-button`,
waitForSelector: `.${blockClass}__influencer`,
},
},

decorators: [
(story) => <div className={`${storyClass}__viewport`}>{story()}</div>,
],
Expand Down

0 comments on commit 98b30f3

Please sign in to comment.