mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2025-01-05 18:34:13 +00:00
69e3a7dd6e
this broke due to https://gerrit.wikimedia.org/r/#/c/315850/ Bug: T148841 Change-Id: I8997ec6d8bb210b87bb984a8f6aed2ba10dbd3f6
22 lines
749 B
Ruby
22 lines
749 B
Ruby
class SpecialPreferencesPage
|
|
include PageObject
|
|
page_url 'Special:Preferences'
|
|
|
|
a(:beta_features_tab, css: '#preftab-betafeatures')
|
|
text_field(:revisionslider_checkbox, css: '[name=wprevisionslider]')
|
|
button(:submit_button, css: '#prefcontrol')
|
|
|
|
def enable_revisionslider
|
|
beta_features_tab_element.when_present.click
|
|
return unless revisionslider_checkbox_element.attribute('checked').nil?
|
|
revisionslider_checkbox_element.click
|
|
submit_button_element.when_present.click
|
|
end
|
|
|
|
def disable_revisionslider
|
|
beta_features_tab_element.when_present.click
|
|
return if revisionslider_checkbox_element.attribute('checked').nil?
|
|
revisionslider_checkbox_element.click
|
|
submit_button_element.when_present.click
|
|
end
|
|
end |