Last modified: 2014-02-20 07:08:42 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 T63578, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61578 - Flow: update Permalink browser test for code changes
Flow: update Permalink browser test for code changes
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
master
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-20 06:35 UTC by spage
Modified: 2014-02-20 07:08 UTC (History)
5 users (show)

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


Attachments

Description spage 2014-02-20 06:35:11 UTC
The Actions menu Permalink test is failing with
  timed out after 5 seconds, waiting for {:class=>"flow-topic-reply-submit", :tag_name=>"button"} to become present (Watir::Wait::TimeoutError)

but commit c927f938 eliminated the specific class for the [Reply] button for a top-level comment on a a topic.

However, simply changing this to "flow-reply-submit" doesn't work, because this also matches the Reply button in all the hidden replies to existing comments that precede the "Comment on xyz" box.

In general, the current PageObject elements only work because the first matching element in the Flow board is probably the one you want, but since Flow boards are made of dozens of similar items, it's fragile. Conceptually Flow page object selectors ought to "point at" a particular topic or post on a page, and then select elements within that.

jQuery selectors can fix this six ways to Sunday:
   $( '.flow-reply-submit:visible' )
   $( '.flow-reply-submit:last' )
   $( 'form.flow-topic-reply-form .flow-reply-submit' )
etc. Mapping these to PageObject/cheezy whatever is... hazy.
Comment 1 Gerrit Notification Bot 2014-02-20 06:56:31 UTC
Change 114426 had a related patch set uploaded by Spage:
update Permalink browser test for code changes

https://gerrit.wikimedia.org/r/114426
Comment 2 Gerrit Notification Bot 2014-02-20 06:59:48 UTC
Change 114426 merged by jenkins-bot:
update Permalink browser test for code changes

https://gerrit.wikimedia.org/r/114426
Comment 3 spage 2014-02-20 07:08:42 UTC
The last jQuery is a CSS 2.1 selector, so I used that in the PageObject.

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


Navigation
Links