mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-29 11:15:42 +08:00
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:
@@ -34,6 +34,7 @@ export const SortableItem = ({
|
||||
p="4"
|
||||
color={textColor}
|
||||
cursor={isEditable ? (grabbing ? "grabbing" : "grab") : "auto"}
|
||||
aria-roledescription="sortable"
|
||||
onMouseDown={() => {
|
||||
setGrabbing(true);
|
||||
}}
|
||||
|
||||
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user