mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-11 15:38:37 +00:00
2f61c46cf0
Change-Id: I234e460ce1d1887af17c90cb9536aea76e295ca8
28 lines
509 B
JavaScript
28 lines
509 B
JavaScript
'use strict';
|
|
const Page = require( 'wdio-mediawiki/Page' );
|
|
|
|
class EchoPage extends Page {
|
|
|
|
get alerts() {
|
|
return $( '#pt-notifications-alert' );
|
|
}
|
|
|
|
get notices() {
|
|
return $( '#pt-notifications-notice' );
|
|
}
|
|
|
|
get alertsFlyout() {
|
|
return $( '.oo-ui-labelElement-label*=Alerts' );
|
|
}
|
|
|
|
get noticesFlyout() {
|
|
return $( '.oo-ui-labelElement-label*=Notices' );
|
|
}
|
|
|
|
get alertMessage() {
|
|
return $( '.mw-echo-ui-notificationItemWidget-content-message-header' );
|
|
}
|
|
|
|
}
|
|
module.exports = new EchoPage();
|