website: make e2e tests actually test the tasks work

Prior to this change the tests didn't handle any task types as the detection of the task type was failing.
This commit is contained in:
Adrian Cowan
2023-01-14 02:16:30 +11:00
parent eb43c8b4f8
commit 19e58c04a5
3 changed files with 59 additions and 45 deletions
@@ -34,6 +34,7 @@ export const SortableItem = ({
p="4"
color={textColor}
cursor={isEditable ? (grabbing ? "grabbing" : "grab") : "auto"}
aria-roledescription="sortable"
onMouseDown={() => {
setGrabbing(true);
}}
+6 -1
View File
@@ -118,7 +118,12 @@ function CheckboxSliderItem(props: {
{/* TODO: display real text instead of just the id */}
<span className={labelTextClass}>{props.labelId}</span>
</label>
<Slider defaultValue={0} isDisabled={!props.isEditable} onChangeEnd={(val) => props.sliderHandler(val / 100)}>
<Slider
aria-roledescription="slider"
defaultValue={0}
isDisabled={!props.isEditable}
onChangeEnd={(val) => props.sliderHandler(val / 100)}
>
<SliderTrack>
<SliderFilledTrack />
<SliderThumb />