mediawiki-extensions-Echo/tests/selenium/pageobjects/echo.page.js
ephemeralwaves dd4539b522 Selenium: Test that checks for user mention alerts
Check that a user gets an alert when their username is mentioned by another user.

Bug: T224894
Change-Id: I303e10a40d1092e4b9f81deef0f1ac2af6f7a435
2019-06-19 10:23:22 +00:00

13 lines
456 B
JavaScript

'use strict';
const Page = require( 'wdio-mediawiki/Page' );
class EchoPage extends Page {
get alerts() { return browser.element( '#pt-notifications-alert' ); }
get notices() { return browser.element( '#pt-notifications-notice' ); }
get flyout() { return browser.element( '.oo-ui-popupWidget-popup' ); }
get alertMessage() { return browser.element( '.mw-echo-ui-notificationItemWidget-content-message-header' ); }
}
module.exports = new EchoPage();