mediawiki-extensions-Popups/tests/browser/features/support/pages/article_page.rb
jdlrobson feb0c76381 Render settings via template
This improves readability and separates the HTML from the
JavaScript

Change-Id: Ib765d78890b9aeb05940df00160790b01751a36b
2016-05-30 10:49:17 -07:00

19 lines
862 B
Ruby

# Standard article page
class ArticlePage
include PageObject
page_url '<%= URI.encode(params[:article_name]) %>'\
'<%= URI.encode(params[:query_string]) if params[:query_string] %>'\
'<%= params[:hash] %>'
div(:page_header, css: '#mw-head')
a(:first_valid_link, css: 'ul a', index: 0)
div(:hovercard, css: '.mwe-popups')
a(:settings_icon, css: '.mwe-popups-settings-icon')
radio(:enable_previews_radio, id: 'mwe-popups-settings-simple')
radio(:disable_previews_radio, id: 'mwe-popups-settings-off')
button(:cancel_settings_button, css: '#mwe-popups-settings-form button', index: 0)
button(:save_settings_button, css: '#mwe-popups-settings-form button', index: 1)
button(:settings_help_ok_button, css: '#mwe-popups-settings-help button', index: 0)
a(:last_link_in_the_footer, css: '#footer-places a', index: -1)
end