mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-02 19:36:48 +00:00
92ee69b92d
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
13 lines
424 B
Ruby
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
|