https://bugzilla.wikimedia.org/show_bug.cgi?id=61504

            Bug ID: 61504
           Summary: unusual behavior with Watchlist and Notifications
                    causes browser test failure
           Product: MobileFrontend
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: browser-test-bug
          Severity: minor
          Priority: Unprioritized
         Component: stable
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: cmcma...@wikimedia.org
                CC: aricha...@wikimedia.org, jgon...@wikimedia.org,
                    jrob...@wikimedia.org, kw...@wikimedia.org,
                    maxsem.w...@gmail.com, rkald...@wikimedia.org,
                    tf...@wikimedia.org
       Web browser: Google Chrome
   Mobile Platform: ---

Created attachment 14619
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=14619&action=edit
URL shows Watchlist but page  is Notifications

This behavior seen as of Feb 17.  I have not created a manual repro, but it
could possibly be done. 

This seems to be a new issue affecting Chrome but not Firefox. 

To see the issue in a local environment:

export MEDIAWIKI_USER=
export MEDIAWIKI_PASSWORD=
export MEDIAWIKI_URL=http://en.m.wikipedia.beta.wmflabs.org/wiki/
export KEEP_BROWSER_OPEN=true
export BROWSER_LABEL=chrome

bundle exec cucumber features/notification.feature:15

The test reports: 

    When I click the browser back button                            #
features/step_definitions/common_steps.rb:113
    Then after 1 seconds I should not see the notifications overlay #
features/step_definitions/notification_steps.rb:13
      expected visible? to return false, got true
(RSpec::Expectations::ExpectationNotMetError)


The root issue is that the back button is available before the notifications
page manifests and the test clicks it, so that while Chrome displays the
notification page, the URL Chrome shows is actually already back on Watchlist. 

This seems unlikely to affect a user, and I checked in a fix for the test, but
I wanted to document it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to