Skip to content

Commit

Permalink
fix: fixed screenshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
wendellguimaraes-tlf committed Feb 21, 2025
1 parent 740cf7c commit 9cfc83a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 2 additions & 6 deletions src/__screenshot_tests__/chip-screenshot-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,11 @@ test('Chip - navigable with href and active', async () => {
id: 'components-chip--navigable-chip',
device: 'DESKTOP',
args: {
href: 'https://example.com',
active: true,
icon: true,
},
});

const story = await screen.findByTestId('chip');
const story = await screen.findByTestId('navigable-chip');

expect(await story.screenshot()).toMatchImageSnapshot();
});
Expand All @@ -83,14 +81,12 @@ test('Chip - navigable with href and active and inverse', async () => {
id: 'components-chip--navigable-chip',
device: 'DESKTOP',
args: {
href: 'https://example.com',
active: true,
icon: true,
inverse: true,
},
});

const story = await screen.findByTestId('chip');
const story = await screen.findByTestId('navigable-chip');

expect(await story.screenshot()).toMatchImageSnapshot();
});

0 comments on commit 9cfc83a

Please sign in to comment.