Skip to content

Commit ca65f8a

Browse files
✅ Improve test robustness
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.
1 parent 9577fc7 commit ca65f8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/openforms/tests/e2e/test_file_upload.py

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ def setUpTestData():
3737
"key": "fileUpload",
3838
"label": "File Upload",
3939
"storage": "url",
40+
"validate": {
41+
"required": True,
42+
},
4043
}
4144
]
4245
},

0 commit comments

Comments
 (0)