mediawiki-extensions-Relate.../tests/browser/features/support/pages/special_preferences_page.rb
Željko Filipin 3ca8ef02ad Fixed Selenium tests
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
2016-02-13 01:52:28 +00:00

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