Skip to content

Commit

Permalink
Add screenshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltaranto committed Jul 29, 2024
1 parent 52f0f76 commit 1dd6a50
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import type { ComponentScreenshot } from 'site/types';
import { Badge, Inline, Heading } from '../';
import { Badge, Inline, Heading, List } from '../';

export const screenshots: ComponentScreenshot = {
screenshotWidths: [320],
Expand Down Expand Up @@ -108,5 +108,16 @@ export const screenshots: ComponentScreenshot = {
</Badge>
),
},
{
label: 'Test: Badge text should follow tone not default set by `List`',
Example: () => (
<List tone="secondary">
<Badge tone="critical">Critical</Badge>
<Badge tone="critical" weight="strong">
Critical
</Badge>
</List>
),
},
],
};

0 comments on commit 1dd6a50

Please sign in to comment.