mediawiki-extensions-Echo/tests/selenium/specs/notifications.js
vidhi-mody f25ed7e705 Selenium: Update to WebdriverIO v5
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
2020-06-22 15:54:30 +00:00

19 lines
481 B
JavaScript

'use strict';
const assert = require( 'assert' ),
NotificationsPage = require( '../pageobjects/notifications.page' ),
UserLoginPage = require( 'wdio-mediawiki/LoginPage' );
describe( 'Notifications', function () {
it( 'checks for Notifications Page @daily', function () {
UserLoginPage.login( browser.config.mwUser, browser.config.mwPwd );
NotificationsPage.open();
assert.strictEqual( NotificationsPage.notificationHeading.getText(), 'Notifications' );
} );
} );