Skip to content

Commit 937425b

Browse files
Sort Vaccines alphabetically in upload help test
This helps prevent the E2E tests from being flaky. This has already been implemented for the national reporting `Vaccine`s.
1 parent 82bb143 commit 937425b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/components/app_import_format_details_component.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,13 @@ def programme
288288
end
289289

290290
def vaccine_and_batch
291-
vaccines = team.vaccines.pluck(:upload_name).map { tag.i(it) }
291+
vaccines =
292+
team
293+
.vaccines
294+
.where.not(upload_name: [nil, ""])
295+
.order(:upload_name)
296+
.pluck(:upload_name)
297+
.map { tag.i(it) }
292298

293299
[
294300
{

0 commit comments

Comments
 (0)