nhsx / antibody-web

Web application for finger prick covid19 antibody Lateral Flow Tests (LFT) and interpreting results
MIT License
28 stars 10 forks source link

[LDAT-30] Client tests for upload + ML prediction #81

Closed barnc closed 4 years ago

barnc commented 4 years ago

Context

One of the more complex components is the photopreview component, which uploads the users photo, and then sends it to the ML endpoint for predictions. It also gives the user their error messages.

Changes proposed in this pull request

This PR adds tests to handle the upload / ML flow, and make sure error messages are feeding through to the client properly

Guidance to review

yarn run test from the client folder - make sure all tests are passing and any useful cases haven't been missed.

Link to Jira task

https://bluesquirrel.atlassian.net/browse/LDAT-30