mediawiki-extensions-Echo/tests/browser/features/support/pages/article_page.rb
jdlrobson 92ee69b92d E2f: mark all as read behaviour
Also adds browser tests for the behaviour of the mark all as read button
to ensure it only clears message notifications.

Dependency:  Ifb7b1b7b7feb4a5af65c79bb16b91a5a9c70166c
Change-Id: I46e1de229e32d705e67cebde678ecea3f3633906
2014-08-13 17:08:16 -07:00

13 lines
424 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')
end