Add new scenarios for font changes

There is currently some duplication between the various page objects
and other code. Those should be cleaned up incrementally.

Change-Id: I592829a00ca65bbecd5399b773c885c764c1cc06
This commit is contained in:
Niklas Laxström
2013-08-27 14:04:24 +03:00
committed by Amir E. Aharoni
parent 8aa7b46191
commit d695b21381
6 changed files with 198 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
class ULSPage
include PageObject
include URL
page_url URL.url('?setlang=<%=params[:setlang]%>')
div(:panel_display, id: 'display-settings-block')
div(:panel_input, id: 'display-settings-block')
button(:panel_fonts, id: 'uls-display-settings-fonts-tab')
button(:panel_language, id: 'uls-display-settings-language-tab')
span(:panel_button_close, id: 'languagesettings-close')
button(:panel_button_display_apply, id: 'uls-displaysettings-apply')
end

View File

@@ -0,0 +1,7 @@
class ResetPreferencesPage
include PageObject
include URL
page_url URL.url('Special:Preferences/reset')
button(:submit, class: 'mw-htmlform-submit')
end