Solution: added test case, reduced code duplication in tests
Attach a file by drag & drop or click to upload