mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-18 12:55:51 +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
15 lines
484 B
Ruby
15 lines
484 B
Ruby
class SpecialPreferencesPage
|
|
include PageObject
|
|
page_url 'Special:Preferences'
|
|
|
|
a(:beta_features_tab, css: '#preftab-betafeatures')
|
|
text_field(:hovercards_checkbox, css: '#mw-input-wppopups')
|
|
button(:submit_button, css: '#prefcontrol')
|
|
|
|
def enable_hovercards
|
|
beta_features_tab_element.when_present.click
|
|
return unless hovercards_checkbox_element.attribute('checked').nil?
|
|
hovercards_checkbox_element.click
|
|
submit_button_element.when_present.click
|
|
end
|
|
end |