mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2025-01-09 21:44:28 +00:00
3ca8ef02ad
Tests now run fine on my local machine and at beta cluster. Please notice that the first three scenarios run at mobile site, and the fourth one runs at desktop site. Bug: T120715 Change-Id: Ib57f48b01d909915ae44976aa51824b4530ffffc
16 lines
484 B
Ruby
16 lines
484 B
Ruby
class SpecialPreferencesPage
|
|
include PageObject
|
|
page_url 'Special:Preferences'
|
|
|
|
a(:beta_features_tab, css: '#preftab-betafeatures')
|
|
text_field(:read_more_checkbox, css: '#mw-input-wpread-more')
|
|
button(:submit_button, css: '#prefcontrol')
|
|
|
|
def enable_read_more
|
|
beta_features_tab_element.when_present.click
|
|
return unless read_more_checkbox_element.attribute('checked').nil?
|
|
read_more_checkbox_element.click
|
|
submit_button_element.when_present.click
|
|
end
|
|
end
|