Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(tabs): delay story due to potential timing chromatic diff #6437

Merged
merged 6 commits into from
Mar 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/tabs/tabs.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const disabledTabsAndMediumIconsForLargeTabsTitle_TestOnly = (): string =
</calcite-tabs>
`;

export const TabChilrenWithPercentageHeights = (): string => html`
export const TabChildrenWithPercentageHeights = (): string => html`
<calcite-tabs style="height: 250px;">
<calcite-tab-nav slot="title-group">
<calcite-tab-title selected>Boats</calcite-tab-title>
Expand All @@ -174,3 +174,6 @@ export const TabChilrenWithPercentageHeights = (): string => html`
</calcite-tab>
</calcite-tabs>
`;
TabChildrenWithPercentageHeights.parameters = {
chromatic: { delay: 1000 }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sidebar: I think we could extract this delay in a helper module for reuse.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I have it sprinkled around on other stories too. The only thing is I'd rather not delay all stories, only the ones we need to

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant extracting the delay value, so we would import the same reference.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha. I've been putting different delay values at this point to see what works without eating too much time. But once I figure that out I'll create a const

};