I am using testcafe for my end to end testing. I am currently testing my slider component and use the drag function, but for some reason it is not moving even though it shows the cursor moving.
This is my rough code:
const slider = Selector('#slider');
const sliderThumb = Selector('#slider-thumb');
test('Dragging Slider', async t => {
await t
.expect(slider.value).eql('50')
.drag(sliderThumb, 30, 0)
.expect(slider.value).eql('70');
});
I expect the slider thumb to move, but it is not moving. Any tips will be appreciated, thanks!