mediawiki-extensions-Echo/tests/browser/features/support/pages/article_page.rb
Cmcmahon b3df4d0814 QA: Refactoring and making the nojs test dtrt
* add @custom_browser tag so we don't create an extra browser instance
* remove @chrome tag because this only works in Firefox
* alphabetize within G/W/T buckets in commons_steps.rb
* alphabetize flyout_steps.rb
* bring env.rb up to date with the modern situation
* make assertions about the URL and heading on the final destination page
* update Ruby gems, especially mediawiki-selenium with a @custom_browser improvement
** use modern RSpec assert syntax
*** we're going to have to update all the repos for this soon

Change-Id: I6cb20126a662bd2a20e2b4bbebe91e8f3b04c7df
2014-09-23 13:35:50 -07:00

16 lines
538 B
Ruby

class ArticlePage
include PageObject
include URL
page_url URL.url("<%=params[:article_name]%><%=params[:hash]%>")
span(:first_heading_span, css: "#firstHeading > span:nth-child(1)" )
li(:flyout_link_container, css: "#pt-notifications")
a(:flyout_link, css: "#pt-notifications a")
div(:flyout, css: ".mw-echo-overlay")
# Overlay header
a(:alert_tab_link, css: ".mw-echo-overlay-title ul li a", index: 1)
button(:mark_as_read, css: ".mw-echo-notifications > button")
a(:messages_view_link, css: ".mw-ui-active")
end