When you add a attachment with 1.) a illegal extension or 2.) with a too big size, then a alert pops up and displays the reason.
This should be the reason, why the travis-test does not get this error.
So the ajax error alert has to be fixed.