Commit Graph

39 Commits

Author SHA1 Message Date
Keith Stevens 581f31203c Fixing the contract tests to use the new user type 2023-01-19 17:32:05 +09: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 be7f933033 Merge pull request #609 from ericv105/main
85: Unit-testing nextjs & react code
2023-01-12 11:46:18 +09:00
ericv105 995c75de99 updated cypress tsconfig to avoid relative imports 2023-01-11 20:36:41 -05:00
Keith Stevens 268cd7d7b5 Forwarding the real task id in backend interactions and ensure the labeling task works 2023-01-11 19:32:52 +09:00
ericv105 66e55b4c65 apply precommit and add relative path contract test 2023-01-10 19:23:03 -05:00
ericv105 d11d81891c Merge branch 'unit-testing-jest-rtl' 2023-01-10 19:14:40 -05:00
ericv105 13883b9ed1 apply pre-commit 2023-01-10 19:07:45 -05:00
Keith Stevens 54cc88bb1f Ensure FlaggableElement always has the set of labels 2023-01-10 14:08:43 +09:00
Jack Michaud 239c10c2dc fix: export OasstError 2023-01-06 10:21:23 -05:00
Jack Michaud 6eca350826 Merge branch 'main' of github.com:LAION-AI/Open-Assistant into jm/tests-for-javascript-oasst-api-client 2023-01-06 10:17:47 -05:00
Jack Michaud 083e8a869b test: add unittest tests for edge cases in OasstApiClient
Fixes #354
2023-01-06 10:14:37 -05:00
klotske 3c330dcd13 Added the oasstApiClient global var and init 2023-01-06 13:44:46 +03:00
ericv105 bf2a5e4a46 jest setup, cypress type conflict fix 2023-01-06 01:07:27 -05:00
klotske f5b49a952e Add the taskInteraction contract test 2023-01-05 23:46:39 +03:00
Jack Michaud bdcfae54fc docs: update TODOs to include issue numbers 2023-01-04 08:04:27 -05:00
Jack Michaud 7b5f702a00 docs: add TODOs 2023-01-03 20:54:49 -05:00
Jack Michaud 5ed4131720 ci: run contract tests through separate cypress command and add into CI 2023-01-03 20:51:11 -05:00
Jack Michaud b7fb1325b2 test: add contract tests for fetchTask and ackTask 2023-01-03 17:12:02 -05: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
Gareth Davidson c3c7a1701a run prettier with new params 2023-01-01 20:57:35 +00:00
Martin H. Normark 592c75ddea Add exports to comply with module resolution 2022-12-31 00:11:32 +01:00
Martin H. Normark b03ad3ae92 Format code with Prettier 2022-12-31 00:11:32 +01:00
Martin H. Normark 8c478f5aaf Format file 2022-12-31 00:11:32 +01:00
Martin H. Normark 5d5ee33ed3 Move e2e test to comply with folder structure 2022-12-31 00:11:32 +01:00
Martin H. Normark 562ddd2e12 Describe how to use Cypress 2022-12-31 00:11:32 +01:00
Martin H. Normark 89c2be5760 Add cypress-image-diff for visual testing 2022-12-31 00:11:32 +01:00
Martin H. Normark 8c75c6645d Add signin e2e test 2022-12-31 00:11:32 +01:00
Martin H. Normark f9bb5b2bf1 Install cypress for e2e and component tests 2022-12-31 00:11:32 +01:00