From 98b30f3c808931441917a520405df56147d39ac7 Mon Sep 17 00:00:00 2001 From: Nandan Devadula <47176249+devadula-nandan@users.noreply.github.com> Date: Wed, 20 Nov 2024 01:59:41 +0530 Subject: [PATCH] chore: increase percy stability in ci checks (#6467) * 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 --- .percy.yml | 7 ++++++- .../components/CreateFullPage/CreateFullPage.stories.jsx | 7 +++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.percy.yml b/.percy.yml index 859929afc9..59f582dc7c 100644 --- a/.percy.yml +++ b/.percy.yml @@ -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 ] diff --git a/packages/ibm-products/src/components/CreateFullPage/CreateFullPage.stories.jsx b/packages/ibm-products/src/components/CreateFullPage/CreateFullPage.stories.jsx index 1108fbfd32..1850755831 100644 --- a/packages/ibm-products/src/components/CreateFullPage/CreateFullPage.stories.jsx +++ b/packages/ibm-products/src/components/CreateFullPage/CreateFullPage.stories.jsx @@ -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) =>
{story()}
, ],