Commit Graph

25 Commits

Author SHA1 Message Date
notmd 599d70962e Merge branch 'main' into 911_sigin_captcha 2023-01-29 23:34:04 +07:00
Adrian Cowan ab4dce3f60 website: Support new widget types for labelling (#966)
* website: Support new widget types for labelling

Adds proper support for yes/no spam style questions as well as a simple interface for flag style labels.

Also cleaned up the Task component to fix some rerender issues.

* website: Fix some UI text, adjust yes/no button alignment

* website: Remove left over console.log

Co-authored-by: notmd <33456881+notmd@users.noreply.github.com>

---------

Co-authored-by: notmd <33456881+notmd@users.noreply.github.com>
2023-01-28 17:07:43 +01:00
rjmacarthy 24f4c08796 Refactor task page routes and repetition
Remove blank line

Lint add blank line

Link pre-commit
2023-01-27 10:16:02 +00:00
Keith Stevens 1e88166401 Merge pull request #936 from othrayte/simple-spam-task
website: Make the spam question simple again
2023-01-26 17:13:48 +09:00
Adrian Cowan 58a07dd05d website: Make the spam question simple again
This is an initial quick fix to get back simple buttons. This should be followed up with some refactoring or maybe a real spam task.
2023-01-26 18:11:41 +11:00
notmd d456cffc4a support json content-type 2023-01-26 02:49:22 +07:00
notmd 0d629c19cd fix test 2023-01-26 02:13:30 +07:00
notmd 97cd57a300 fix test 2023-01-25 16:02:20 +07:00
Adrian Cowan 25cf9eb953 website: Switch to radio buttons for likert style labeling 2023-01-23 21:51:19 +11:00
Adrian Cowan 007773a3f5 website: Switch to likert style labelling 2023-01-23 21:51:17 +11:00
Keith Stevens 5fa1155deb Deleting a decayed cypress auth check 2023-01-18 14:51:06 +09:00
klotske 224223ddde Update components and Cypress test 2023-01-14 02:47:47 +03:00
Adrian Cowan 19e58c04a5 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.
2023-01-14 02:16:30 +11:00
Adrian Cowan eb43c8b4f8 website: Add a review step before submitting
to hint to the user that they should reread and check what they have written.

Also show numbers for ranked items rather than drag handles in the review step as the items can't be moved in that step.
2023-01-14 02:16:27 +11:00
Adrian Cowan 5054e19e93 website: Remove next task button and load new task immediately
Also disable the task inputs while the task is submitted and before the new task is ready in case the users network is slow or something.
2023-01-13 23:40:16 +11:00
Keith Stevens 5cc9a1e1d1 Adding the random end2end test file 2023-01-12 12:42:04 +09:00
Keith Stevens 7b6ffdb9bb Semi-comprehensive fix to the web end to end tests 2023-01-12 12:40:08 +09:00
Keith Stevens 54cc88bb1f Ensure FlaggableElement always has the set of labels 2023-01-10 14:08:43 +09:00
Adrian Cowan 81e354dec5 website: Implement page for creating initial prompts 2023-01-04 00:13:15 +11:00
Adrian Cowan 447a3bce41 website: Add some new detail to the docs on e2e testing 2023-01-02 22:40:51 +11:00
Adrian Cowan dc1af6e2d8 website: Add e2e tests of ranking replies and prompts
Like the previous commit, these are intended to function as a minimal smoke test that the API interaction with the backend is functional.
2023-01-02 21:13:10 +11:00
Adrian Cowan 32e212b5a5 website: Add e2e tests of creating an assistant/prompter reply
These are intended to function as a minimal smoke test that the API interaction with the backend is functional.
2023-01-02 21:13:10 +11:00
Adrian Cowan 0df6d7fd31 website: more e2e tests for signin
Fixed issue where existing sign in test fails due to the existence of dev test login.

Added reusable cy.signInWithEmail() to login before testing rest of UI.
2023-01-02 21:13:10 +11:00
Martin H. Normark 5d5ee33ed3 Move e2e test to comply with folder structure 2022-12-31 00:11:32 +01:00
Martin H. Normark 8c75c6645d Add signin e2e test 2022-12-31 00:11:32 +01:00