diff --git a/website/cypress/e2e/create/assistant_reply.cy.ts b/website/cypress/e2e/create/assistant_reply.cy.ts deleted file mode 100644 index aa72b846..00000000 --- a/website/cypress/e2e/create/assistant_reply.cy.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { faker } from "@faker-js/faker"; - -describe("replying as the assistant", () => { - it("completes the current task on submit and on request shows a new task", () => { - cy.signInWithEmail("cypress@example.com"); - cy.visit("/create/assistant_reply"); - - cy.get('[data-cy="task-id"').then((taskIdElement) => { - const taskId = taskIdElement.text(); - - const reply = faker.lorem.sentence(); - cy.log("reply", reply); - cy.get('[data-cy="reply"').type(reply); - - cy.get('[data-cy="submit"]').click(); - - cy.get('[data-cy="next-task"]').click(); - - cy.get('[data-cy="task-id"').should((taskIdElement) => { - expect(taskIdElement.text()).not.to.eq(taskId); - }); - }); - }); -}); - -export {}; diff --git a/website/cypress/e2e/create/initial_prompt.cy.ts b/website/cypress/e2e/create/initial_prompt.cy.ts deleted file mode 100644 index b17f2dd9..00000000 --- a/website/cypress/e2e/create/initial_prompt.cy.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { faker } from "@faker-js/faker"; - -describe("creating initial prompts", () => { - it("completes the current task on submit and on request shows a new task", () => { - cy.signInWithEmail("cypress@example.com"); - cy.visit("/create/initial_prompt"); - - cy.get('[data-cy="task-id"').then((taskIdElement) => { - const taskId = taskIdElement.text(); - - const prompt = faker.lorem.sentence(); - cy.log("prompt", prompt); - cy.get('[data-cy="reply"').type(prompt); - - cy.get('[data-cy="submit"]').click(); - - cy.get('[data-cy="next-task"]').click(); - - cy.get('[data-cy="task-id"').should((taskIdElement) => { - expect(taskIdElement.text()).not.to.eq(taskId); - }); - }); - }); -}); - -export {}; diff --git a/website/cypress/e2e/create/user_reply.cy.ts b/website/cypress/e2e/create/user_reply.cy.ts deleted file mode 100644 index c126e9c5..00000000 --- a/website/cypress/e2e/create/user_reply.cy.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { faker } from "@faker-js/faker"; - -describe("replying as the prompter", () => { - it("completes the current task on submit and on request shows a new task", () => { - cy.signInWithEmail("cypress@example.com"); - cy.visit("/create/user_reply"); - - cy.get('[data-cy="task-id"').then((taskIdElement) => { - const taskId = taskIdElement.text(); - - const reply = faker.lorem.sentence(); - cy.log("reply", reply); - cy.get('[data-cy="reply"').type(reply); - - cy.get('[data-cy="submit"]').click(); - - cy.get('[data-cy="next-task"]').click(); - - cy.get('[data-cy="task-id"').should((taskIdElement) => { - expect(taskIdElement.text()).not.to.eq(taskId); - }); - }); - }); -}); - -export {}; diff --git a/website/cypress/e2e/evaluate/rank_assistant_replies.cy.ts b/website/cypress/e2e/evaluate/rank_assistant_replies.cy.ts deleted file mode 100644 index 3093bd56..00000000 --- a/website/cypress/e2e/evaluate/rank_assistant_replies.cy.ts +++ /dev/null @@ -1,30 +0,0 @@ -describe("ranking prompter replies", () => { - it("completes the current task on submit and on request shows a new task", () => { - cy.signInWithEmail("cypress@example.com"); - cy.visit("/evaluate/rank_assistant_replies"); - - cy.get('[data-cy="task-id"').then((taskIdElement) => { - const taskId = taskIdElement.text(); - - // Rank an item using the keyboard so that the submit button is enabled - cy.get('button[aria-roledescription="sortable"]') - .first() - .click() - .type("{enter}") - .wait(100) - .type("{downArrow}") - .wait(100) - .type("{enter}"); - - cy.get('[data-cy="submit"]').click(); - - cy.get('[data-cy="next-task"]').click(); - - cy.get('[data-cy="task-id"').should((taskIdElement) => { - expect(taskIdElement.text()).not.to.eq(taskId); - }); - }); - }); -}); - -export {}; diff --git a/website/cypress/e2e/evaluate/rank_initial_prompts.cy.ts b/website/cypress/e2e/evaluate/rank_initial_prompts.cy.ts deleted file mode 100644 index 8c3f4c9a..00000000 --- a/website/cypress/e2e/evaluate/rank_initial_prompts.cy.ts +++ /dev/null @@ -1,30 +0,0 @@ -describe("ranking initial prompts", () => { - it("completes the current task on submit and on request shows a new task", () => { - cy.signInWithEmail("cypress@example.com"); - cy.visit("/evaluate/rank_initial_prompts"); - - cy.get('[data-cy="task-id"').then((taskIdElement) => { - const taskId = taskIdElement.text(); - - // Rank an item using the keyboard so that the submit button is enabled - cy.get('button[aria-roledescription="sortable"]') - .first() - .click() - .type("{enter}") - .wait(100) - .type("{downArrow}") - .wait(100) - .type("{enter}"); - - cy.get('[data-cy="submit"]').click(); - - cy.get('[data-cy="next-task"]').click(); - - cy.get('[data-cy="task-id"').should((taskIdElement) => { - expect(taskIdElement.text()).not.to.eq(taskId); - }); - }); - }); -}); - -export {}; diff --git a/website/cypress/e2e/evaluate/rank_user_replies.cy.ts b/website/cypress/e2e/evaluate/rank_user_replies.cy.ts deleted file mode 100644 index 55487f1d..00000000 --- a/website/cypress/e2e/evaluate/rank_user_replies.cy.ts +++ /dev/null @@ -1,30 +0,0 @@ -describe("ranking assistant replies", () => { - it("completes the current task on submit and on request shows a new task", () => { - cy.signInWithEmail("cypress@example.com"); - cy.visit("/evaluate/rank_user_replies"); - - cy.get('[data-cy="task-id"').then((taskIdElement) => { - const taskId = taskIdElement.text(); - - // Rank an item using the keyboard so that the submit button is enabled - cy.get('button[aria-roledescription="sortable"]') - .first() - .click() - .type("{enter}") - .wait(100) - .type("{downArrow}") - .wait(100) - .type("{enter}"); - - cy.get('[data-cy="submit"]').click(); - - cy.get('[data-cy="next-task"]').click(); - - cy.get('[data-cy="task-id"').should((taskIdElement) => { - expect(taskIdElement.text()).not.to.eq(taskId); - }); - }); - }); -}); - -export {}; diff --git a/website/src/components/Tasks/CreateTask.tsx b/website/src/components/Tasks/CreateTask.tsx index 84b9fe3f..d5f38ad1 100644 --- a/website/src/components/Tasks/CreateTask.tsx +++ b/website/src/components/Tasks/CreateTask.tsx @@ -14,21 +14,23 @@ 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 54abfbf6..c6c5d5e6 100644 --- a/website/src/components/Tasks/EvaluateTask.tsx +++ b/website/src/components/Tasks/EvaluateTask.tsx @@ -27,13 +27,15 @@ 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 db7c0641..36b6cb16 100644 --- a/website/src/components/Tasks/LabelTask.tsx +++ b/website/src/components/Tasks/LabelTask.tsx @@ -31,28 +31,30 @@ export const LabelTask = ({ }; return ( - - <> -
{taskType.label}
-

{taskType.overview}

+
+ + <> +
{taskType.label}
+

{taskType.overview}

- {task.conversation ? ( - - ) : ( - - )} - - -
+ {task.conversation ? ( + + ) : ( + + )} + + + +
); };