Extracted from https://github.com/openstreetmap/openstreetmap-website/pull/6424.

This is a workaround for Selenium/Webdriver throwing an error `You are trying 
to upload something that isn't a file`, despite not trying to upload 
anything.

In some circumstances, Selenium interprets the value `test` in a form field as 
a placeholder for a fake file upload. No idea why. Hat tip to 
https://blog.konoson.com/webdrivererror-you-are-trying-to-upload-something-that-isnt-a-file
 for the info.

This was discovered when trying to run a remote Selenium instance (in a 
separate Docker container). So I guess that's one such circumstance where 
this can happen.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6431

-- Commit Summary --

  * Selenium/WebDriver thinks that `test` signals a fake file upload

-- File Changes --

    M test/application_system_test_case.rb (2)
    M test/controllers/sessions_controller_test.rb (12)
    M test/factories/user.rb (2)
    M test/integration/login_test.rb (64)
    M test/integration/oauth2_test.rb (2)
    M test/integration/page_locale_test.rb (4)
    M test/integration/user_blocks_test.rb (2)
    M test/integration/user_diaries_test.rb (2)
    M test/integration/user_terms_seen_test.rb (4)
    M test/system/user_login_test.rb (2)
    M test/test_helper.rb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6431.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6431.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6431
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to