Last modified: 2014-07-23 12:17:36 UTC
As anonymous user at http://en.m.wikipedia.beta.wmflabs.org Click Random, get result e.g. http://en.m.wikipedia.beta.wmflabs.org/wiki/0.4646705591863669_Moved#/random Page should contain an upload icon (with a lock symbol I think) which when clicked yields a "you must login" message, but does not $ bundle exec cucumber features/pageactions.feature:12 @chrome @en.m.wikipedia.beta.wmflabs.org @en.m.wikipedia.org @firefox @test2.m.wikipedia.org Feature: Page actions menu when anonymous Background: # features/pageactions.feature:4 Given I am on the "Main Page" page # features/step_definitions/common_steps.rb:90 And I click on "Random" in the main navigation menu # features/step_definitions/mainmenu_steps.rb:5 Scenario: Receive notification message - Upload Icon # features/pageactions.feature:12 When I click on the upload icon # features/step_definitions/lead_photo_steps.rb:1 timed out after 5 seconds, waiting for {:id=>"ca-upload", :tag_name=>"li"} to become present (Watir::Wait::TimeoutError) ./features/step_definitions/lead_photo_steps.rb:2:in `/^I click on the upload icon$/' features/pageactions.feature:13:in `When I click on the upload icon' Then I see a toast with message "Please log in to add an image to this page." # features/step_definitions/common_article_steps.rb:62 Failing Scenarios: cucumber features/pageactions.feature:12 # Scenario: Receive notification message - Upload Icon
Also missing for logged-in new user: $ bundle exec cucumber features/uploads_lead_tutorial.feature:8 @chrome @en.m.wikipedia.beta.wmflabs.org @firefox @login @test2.m.wikipedia.org Feature: Lead image tutorial Background: # features/uploads_lead_tutorial.feature:4 Given I am logged in as a new user # features/step_definitions/common_steps.rb:58 And I am on the "Nonexistent_page_abc" page # features/step_definitions/common_steps.rb:90 Scenario: There is an upload button # features/uploads_lead_tutorial.feature:8 Then there is an upload an image to this page button # features/step_definitions/lead_photo_steps.rb:5 expected #<Watir::LI:0x241240de844ea8e0 located=false selector={:id=>"ca-upload", :tag_name=>"li"}> to exist (RSpec::Expectations::ExpectationNotMetError) ./features/step_definitions/lead_photo_steps.rb:6:in `/^there is an upload an image to this page button$/' features/uploads_lead_tutorial.feature:9:in `Then there is an upload an image to this page button' And the upload an image to this page button is enabled # features/step_definitions/lead_photo_steps.rb:9 Failing Scenarios: cucumber features/uploads_lead_tutorial.feature:8 # Scenario: There is an upload button
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/yXevl4lK
Caused by change https://gerrit.wikimedia.org/r/#/c/137461/ Which restricts the visibility of upload button to autoconfirmed users. If i'm right in context to https://bugzilla.wikimedia.org/show_bug.cgi?id=62598#c41
This is by design. See https://trello.com/c/jHKLcZ0j/7-5-only-allow-uploads-by-auto-confirmed-users I'll clean up the tests now.