Thanks for documenting this Chris!
I'm not sure if this should be a bug - maybe uploads to Special:Uploads of this form should show an error message saying "We already have this photo." ?
That aside how can we ensure each of the images uploaded is unique? This test should be testing the case where an upload is unique...
On Tue, May 13, 2014 at 8:16 PM, Chris McMahon cmcmahon@wikimedia.org wrote:
For the sake of completeness, here's why this test is failing:
The regular UploadWizard checks for duplicate images on the target wiki and prevents users from uploading if it finds a duplicate image. (This btw is why the regular UploadWizard test uses the ChunkyPNG utility to create near-unique images for each run of the UploadWizard test.)
But the Mobile upload page will allow users to believe that they have uploaded a duplicate image. When the Mobile upload page presents the image thumbnail of the duplicate image on the success page, the alt text containing the image description is correct, but the actual href link itself is empty. Refresh the uploads page and the duplicate image thumb is no longer visible.
So this test as written would pass once and only once on a static target wiki like beta labs. -Chris
On Tue, May 13, 2014 at 9:49 AM, Jon Robson jrobson@wikimedia.org wrote:
Thanks Chris keep us posted - should I open a bug?