Skip to content

Commit dea3ad6

Browse files
authored
test(visual): the disabled SelectableCard story is shot in the probe theme too (#14046)
* test(visual): the disabled SelectableCard story is shot in the probe theme too The Disabled story moves from visual-baseline to visual-theme-matrix, so the visual gate also shoots it in the probe theme. The neutral theme styles nothing on a disabled card's data-disabled state, so only the probe theme shows that a theme reaches it (#14017). The neutral shots stay. * test(visual): Card's theme-added variant story stays in the probe plan With the disabled SelectableCard story opted into the probe theme, the probe cover counts its card and selectable-card targets as covered, so it dropped Card's ThemeAddedVariant story, whose probe shots the Card record names as verification. ThemeAddedVariant now opts in too, so it is always planned.
1 parent 87ef5e3 commit dea3ad6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/storybook/stories/Card.stories.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ const brandVariantTheme = defineTheme({
527527
});
528528

529529
export const ThemeAddedVariant: Story = {
530+
tags: ['visual-theme-matrix'],
530531
render: () => (
531532
<Theme theme={brandVariantTheme} mode="light">
532533
<div {...stylex.props(styles.storyWrapper)}>

‎apps/storybook/stories/SelectableCard.stories.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export const WithNestedButton: Story = {
233233
};
234234

235235
export const Disabled: Story = {
236-
tags: ['visual-baseline'],
236+
tags: ['visual-theme-matrix'],
237237
render: () => (
238238
<HStack gap={3}>
239239
<SelectableCard

0 commit comments

Comments
 (0)