mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-10-02 11:50:46 +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:
1 parent
eb43c8b4f8
commit
19e58c04a5
3 files changed
+59
-45
No files matched your search
@@ -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