Last modified: 2014-02-27 22:10:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63504, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61504 - unusual behavior with Watchlist and Notifications causes browser test failure
unusual behavior with Watchlist and Notifications causes browser test failure
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Unprioritized minor
: ---
Assigned To: Nobody - You can work on this!
: browser-test-bug
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-18 18:22 UTC by Chris McMahon
Modified: 2014-02-27 22:10 UTC (History)
7 users (show)

See Also:
Web browser: Google Chrome
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
URL shows Watchlist but page is Notifications (67.79 KB, image/png)
2014-02-18 18:22 UTC, Chris McMahon
Details

Description Chris McMahon 2014-02-18 18:22:27 UTC
Created attachment 14619 [details]
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.
Comment 1 Gerrit Notification Bot 2014-02-18 18:24:22 UTC
Change 113997 had a related patch set uploaded by Cmcmahon:
See Bug 61504 for description

https://gerrit.wikimedia.org/r/113997
Comment 2 Gerrit Notification Bot 2014-02-19 14:56:22 UTC
Change 113997 merged by jenkins-bot:
Maintenance for Chrome race condition. See Bug 61504 for description

https://gerrit.wikimedia.org/r/113997

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links