2015-02-20 16:54:06 +00:00
|
|
|
# Page Object describing Headings, Flyouts, and Overlay in Echo
|
2014-08-04 23:07:37 +00:00
|
|
|
class ArticlePage
|
|
|
|
include PageObject
|
|
|
|
include URL
|
2014-11-10 21:21:10 +00:00
|
|
|
page_url URL.url('<%=params[:article_name]%><%=params[:hash]%>')
|
2014-09-22 22:00:35 +00:00
|
|
|
|
2015-02-09 20:47:34 +00:00
|
|
|
h1(:first_heading, id: 'firstHeading')
|
2014-11-10 21:21:10 +00:00
|
|
|
li(:flyout_link_container, css: '#pt-notifications')
|
|
|
|
a(:flyout_link, css: '#pt-notifications a')
|
|
|
|
div(:flyout, css: '.mw-echo-overlay')
|
2014-08-13 23:11:38 +00:00
|
|
|
|
|
|
|
# Overlay header
|
2014-11-10 21:21:10 +00:00
|
|
|
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')
|
2014-08-04 23:07:37 +00:00
|
|
|
end
|