mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-04 04:09:00 +00:00
8afe4c1c15
Bug: T114095 Change-Id: I598e4782e97c7b571f92a802c816db6567169d1d
28 lines
1.1 KiB
Ruby
28 lines
1.1 KiB
Ruby
# Page Object describing Headings, Flyouts, and Overlay in Echo
|
|
class ArticlePage
|
|
include PageObject
|
|
|
|
h1(:first_heading, id: 'firstHeading')
|
|
|
|
li(:notifications_alert, css: '#pt-notifications-alert')
|
|
li(:notifications_message, css: '#pt-notifications-message')
|
|
link(:notifications_badge_alert, css: '#pt-notifications-alert a')
|
|
link(:notifications_badge_message, css: '#pt-notifications-message a')
|
|
div(:popup_alert,
|
|
css: '#pt-notifications-alert .mw-echo-ui-notificationBadgeButtonPopupWidget-popup')
|
|
div(:popup_message,
|
|
css: '#pt-notifications-message .mw-echo-ui-notificationBadgeButtonPopupWidget-popup')
|
|
|
|
# Popup elements
|
|
button(:mark_all_read_button, css: '.mw-echo-ui-notificationsWidget-markAllReadButton')
|
|
def popup_title(popupElement)
|
|
popupElement.when_present.span_element(
|
|
css: '.oo-ui-popupWidget-head > .oo-ui-labelElement-label')
|
|
end
|
|
# span(:popup_title, css: '.oo-ui-popupWidget-head > .oo-ui-labelElement-label')
|
|
|
|
# Notification elements
|
|
a(:notification_option, css: '.mw-echo-ui-notificationOptionWidget')
|
|
a(:notification_option_markRead, css: '.mw-echo-ui-notificationOptionWidget-markAsReadButton')
|
|
end
|