| 1 | 'use strict'; |
| 2 | const Page = require( 'wdio-mediawiki/Page' ); |
| 3 | |
| 4 | class EchoPage extends Page { |
| 5 | |
| 6 | get alerts() { |
| 7 | return $( '#pt-notifications-alert' ); |
| 8 | } |
| 9 | |
| 10 | get notices() { |
| 11 | return $( '#pt-notifications-notice' ); |
| 12 | } |
| 13 | |
| 14 | get alertsFlyout() { |
| 15 | return $( '.oo-ui-labelElement-label*=Alerts' ); |
| 16 | } |
| 17 | |
| 18 | get noticesFlyout() { |
| 19 | return $( '.oo-ui-labelElement-label*=Notices' ); |
| 20 | } |
| 21 | |
| 22 | get alertMessage() { |
| 23 | return $( '.mw-echo-ui-notificationItemWidget-content-message-header' ); |
| 24 | } |
| 25 | |
| 26 | } |
| 27 | module.exports = new EchoPage(); |