mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-18 21:05:57 +00:00
3e78503e8e
Basic feature of browsing a page, hovering a link, and showing/hiding a hovercard. Depends-On: Ie94fa399512be041f12b2f7cada20d4206ddaf82 Bug: T133019 Change-Id: Idf39e7e2a3b343babd6d0538225b4ef9002e8ac1
12 lines
358 B
Ruby
12 lines
358 B
Ruby
# Standard article page
|
|
class ArticlePage
|
|
include PageObject
|
|
|
|
page_url '<%= URI.encode(params[:article_name]) %>'\
|
|
'<%= URI.encode(params[:query_string]) if params[:query_string] %>'\
|
|
'<%= params[:hash] %>'
|
|
div(:page_header, css: '#mw-head')
|
|
a(:first_valid_link, css: 'ul a', index: 0)
|
|
div(:hovercard, css: '.mwe-popups')
|
|
end
|