Could someone please help me with writing a test for a slider element in this situation?
<Slider
defaultValue={pickupValue.length ? pickupValue : [15, 15]}
aria-labelledby="range-slider"
valueLabelDisplay="auto"
onChange={(e, value) => handleChangePickupTime(value)}
valueLabelFormat={(value) => formatSliderToDisplay(value)}
step={0.5}
marks
min={0}
max={24}
/>
Below is my attempt:
constructor{
this.productPickupCutoff= Selector('[ pickupValue : [10,12]}]');
}
async setOnProductPickupCutoff(){
await t
.click(this.productPickupCutoff);
.drag(this.productPickupCutoff);
}