Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

website: Improve reliability of e2e tests

Open othrayte opened this issue 2 years ago • 1 comments

The main change is to useGenericTaskAPI() to have clean cases when the task is set and when it is awaiting progress. I also changed the frontend to pass through the 503 code we get when tasks are not available, but then decided that "no tasks available" is better than just freezing up on other errors, so all errors are currently handled the same.

Some other type consistency changes were also make to cleanup the task types and also some of the prop names.

othrayte avatar Jan 28 '23 16:01 othrayte

Oh look, the E2E tests passed. 😆

othrayte avatar Jan 28 '23 16:01 othrayte

I'll leave the review to @AbdBarho

fozziethebeat avatar Jan 29 '23 06:01 fozziethebeat