Use 'have_selector' matcher instead of looking up the element's class list.
Attach a file by drag & drop or click to upload