Skip to content

Commit

Permalink
test(Slider): update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Sep 11, 2023
1 parent 28cd212 commit 400d0bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/components/Slider/Slider-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ describe('Slider', () => {

it('should accurately position slider on mount', () => {
renderSlider({ value: 50, max: 100, min: 0 });
expect(screen.getByRole('slider')).toHaveStyle({ left: '50%' });
expect(screen.getByRole('slider')).toHaveStyle({
insetInlineStart: '50%',
});
});

it('marks input field as hidden if hidden via props', () => {
Expand Down

0 comments on commit 400d0bc

Please sign in to comment.