Skip to content

Commit df63579

Browse files
committed
Fix test
1 parent a96b168 commit df63579

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

packages/react/src/SegmentedControl/SegmentedControl.test.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -178,21 +178,6 @@ describe('SegmentedControl', () => {
178178
}
179179
})
180180

181-
it('renders icon button with aria-label and no tooltip', () => {
182-
const {getByRole} = render(
183-
<SegmentedControl aria-label="File view">
184-
{segmentData.map(({label, icon}) => (
185-
<SegmentedControl.IconButton icon={icon} aria-label={label} key={label} />
186-
))}
187-
</SegmentedControl>,
188-
)
189-
190-
for (const datum of segmentData) {
191-
const labelledButton = getByRole('button', {name: datum.label})
192-
expect(labelledButton).toHaveAttribute('aria-label', datum.label)
193-
}
194-
})
195-
196181
it('calls onChange with index of clicked segment button', async () => {
197182
const user = userEvent.setup()
198183
const handleChange = vi.fn()

0 commit comments

Comments
 (0)