mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-18 12:55:51 +00:00
85cc7e2257
Test whether: * "Enable previews" footer link correctly appears/disappears; * A hovercard correctly shows/doesn't show when enabled/disabled. Bug: T133054 Change-Id: I55f311b6b8845e6ebf4cc5698758afd1f9042a45
19 lines
875 B
Ruby
19 lines
875 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')
|
|
a(:settings_icon, css: '.mwe-popups-settings-icon')
|
|
radio(:enable_previews_radio, id: 'mwe-popups-settings-simple')
|
|
radio(:disable_previews_radio, id: 'mwe-popups-settings-disable_previews')
|
|
button(:cancel_settings_button, css: '#mwe-popups-settings-form button', index: 0)
|
|
button(:save_settings_button, css: '#mwe-popups-settings-form button', index: 1)
|
|
button(:settings_help_ok_button, css: '#mwe-popups-settings-help button', index: 0)
|
|
a(:last_link_in_the_footer, css: '#footer-places a', index: -1)
|
|
end
|