Skip to content

Conversation

@LJBabbage
Copy link
Contributor

@LJBabbage LJBabbage commented Jan 27, 2026

What and why?

Fixes the upload errors and allows multiple to be shown. I have rationalised the validation to one place and removed unnecessary code. I have also moved the majority of tests from view to unit as they should always have been. Extra tests have also been added as coverage was poor

How to test?

Create a SEFT CE and try uploading different files which would break validation

Jira

@LJBabbage LJBabbage requested a review from a team as a code owner January 27, 2026 09:14
Copy link
Contributor

@matthew-robinson-ons matthew-robinson-ons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage looks good and the rework of the tests. The correct errors are shown individually and when there are multiple errors. As well as the stripping out of redundant code. Couple queries about the text of the last acceptance criteria and a variable name.

Copy link
Contributor

@arroyoAle arroyoAle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionally works as expected for one or multiple errors, test coverage looks good. Agree with the other comments about following the design system and variable names

@LJBabbage LJBabbage merged commit f37df68 into main Jan 30, 2026
4 checks passed
@LJBabbage LJBabbage deleted the upload-error-behaviour branch January 30, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants