mediawiki-extensions-Echo/tests/browser/features/support/pages/article_page.rb
Cmcmahon 50790b2965 QA: refactor for consistent Ruby practice
* use symbols not strings for element labels
* use double quotes except where single quotes required

Change-Id: I4eef50206c526611da535e529035c076d5bce266
2014-09-17 16:27:24 -07:00

14 lines
466 B
Ruby

class ArticlePage
include PageObject
include URL
page_url URL.url("<%=params[:article_name]%><%=params[:hash]%>")
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