mediawiki-extensions-Echo/tests/browser/features/support/pages/article_page.rb
Cmcmahon 7eacda1306 QA: get messages test to pass properly
This is lieu of

https://gerrit.wikimedia.org/r/#/c/159685/

If we merge this patch, we should abandon 159685

Change-Id: I84e0a1df6076a68ee7e97feb929195da9937c412
2014-09-15 11:07:45 -07:00

14 lines
471 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