Skip to content

Commit efd7b41

Browse files
committed
Modify MainSlider test for multiple snapshots
1 parent 902600e commit efd7b41

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/app/__tests__/MainSlider.test.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,11 @@ describe('Unit testing for MainSlider.jsx', () => {
4040
snapshotsLength: 3,
4141
};
4242

43-
const state = {
44-
tabs: {
45-
100: {
46-
sliderIndex: 1,
47-
},
48-
},
49-
currentTab: 100,
50-
};
51-
52-
// currently not working :( likely needs to correctly handle understanding what tab it should currently be at
5343
test('Component should have min, max, value with correct values to indicate slider position when there are multiple snapshots', () => {
5444
render(<MainSlider {...props} />);
5545
expect(screen.getByRole('slider')).toHaveAttribute('aria-valuemax', '2');
5646
expect(screen.getByRole('slider')).toHaveAttribute('aria-valuemin', '0');
57-
// expect(screen.getByRole('slider')).toHaveAttribute('aria-valuenow','0')
47+
expect(screen.getByRole('slider')).toHaveAttribute('aria-valuenow','0')
5848
});
5949
});
6050
});

0 commit comments

Comments
 (0)