mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 01:30:15 +00:00
f25ed7e705
Update NPM packages: webdriverio, wdio-mediawiki. Replace NPM packages: - wdio-mocha-framework with @wdio/mocha-framework. - wdio-spec-reporter with @wdio/spec-reporter. New NPM packages: @wdio/cli, @wdio/local-runner, @wdio/sync. Replace: - `browser.element` with `$`. - `chromeOptions` with `'goog:chromeOptions'`. - `password` with `mwPwd`. - `username` with `mwUser`. - `waitForVisible()` with `waitForDisplayed()`. Bug: T250610 Change-Id: If7a5ee9588f082be18f27ee45a051ae956c688f5
14 lines
490 B
JavaScript
14 lines
490 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();
|