Skip to content

Commit

Permalink
✅ Improve test robustness
Browse files Browse the repository at this point in the history
Optional file uploads with validation errors remain blank and don't
block form validation/submission, so while there were issues with the
upload, the test didn't fail.

Now the test fails if the upload didn't succeed.
  • Loading branch information
sergei-maertens committed Jul 4, 2024
1 parent 9577fc7 commit ca65f8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/openforms/tests/e2e/test_file_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def setUpTestData():
"key": "fileUpload",
"label": "File Upload",
"storage": "url",
"validate": {
"required": True,
},
}
]
},
Expand Down

0 comments on commit ca65f8a

Please sign in to comment.