From 0f9867c542a8f93de2460d327437df21f31e3297 Mon Sep 17 00:00:00 2001 From: rsandb Date: Wed, 11 Jan 2023 22:28:20 -0600 Subject: [PATCH] added data-cy divs to Task components --- website/src/components/Tasks/CreateTask.tsx | 62 ++++++++++--------- website/src/components/Tasks/EvaluateTask.tsx | 34 +++++----- website/src/components/Tasks/LabelTask.tsx | 60 +++++++++--------- 3 files changed, 81 insertions(+), 75 deletions(-) diff --git a/website/src/components/Tasks/CreateTask.tsx b/website/src/components/Tasks/CreateTask.tsx index f0480ee4..e3f8f897 100644 --- a/website/src/components/Tasks/CreateTask.tsx +++ b/website/src/components/Tasks/CreateTask.tsx @@ -18,35 +18,37 @@ export const CreateTask = ({ task, taskType, onReplyChanged }: TaskSurveyProps<{ }; return ( - - <> - - - {taskType.label} - - - {taskType.overview} - - - {task.conversation ? ( - - - - ) : null} - - <> - - - {taskType.instruction} - - - - - +
+ + <> + + + {taskType.label} + + + {taskType.overview} + + + {task.conversation ? ( + + + + ) : null} + + <> + + + {taskType.instruction} + + + + + +
); }; diff --git a/website/src/components/Tasks/EvaluateTask.tsx b/website/src/components/Tasks/EvaluateTask.tsx index a6a43776..a85e9abd 100644 --- a/website/src/components/Tasks/EvaluateTask.tsx +++ b/website/src/components/Tasks/EvaluateTask.tsx @@ -32,21 +32,23 @@ export const EvaluateTask = ({ task, onReplyChanged }: TaskSurveyProps<{ ranking const sortables = task.replies ? "replies" : "prompts"; return ( - - - - - Instructions - - - Given the following {sortables}, sort them from best to worst, best being first, worst being last. - - - - - - - - +
+ + + + + Instructions + + + Given the following {sortables}, sort them from best to worst, best being first, worst being last. + + + + + + + + +
); }; diff --git a/website/src/components/Tasks/LabelTask.tsx b/website/src/components/Tasks/LabelTask.tsx index d3c40452..637715c9 100644 --- a/website/src/components/Tasks/LabelTask.tsx +++ b/website/src/components/Tasks/LabelTask.tsx @@ -35,36 +35,38 @@ export const LabelTask = ({ const labelColor = useColorModeValue("gray.600", "gray.400"); return ( - - <> - - {taskType.label} - - - {taskType.overview} - +
+ + <> + + {taskType.label} + + + {taskType.overview} + - {task.conversation ? ( - - - - ) : ( - - - - )} - - - + {task.conversation ? ( + + + + ) : ( + + + + )} + + + +
); };