+++ /dev/null
-'use strict';
-const Page = require( './page' );
-
-class UserMessagePage extends Page {
- get usermessage() { return browser.element( 'div.usermessage' ); }
-}
-module.exports = new UserMessagePage();
const assert = require( 'assert' ),
CreateAccountPage = require( '../pageobjects/createaccount.page' ),
PreferencesPage = require( '../pageobjects/preferences.page' ),
- UserLoginPage = require( '../pageobjects/userlogin.page' ),
- UserMessagePage = require( '../pageobjects/usermessage.page' ),
- EditPage = require( '../pageobjects/edit.page' );
+ UserLoginPage = require( '../pageobjects/userlogin.page' );
describe( 'User', function () {
} );
- it( 'should be able to view new message banner', function () {
-
- // create user
- browser.call( function () {
- return CreateAccountPage.apiCreateAccount( username, password );
- } );
-
- // create talk page with content
- browser.call( function () {
- return EditPage.apiEdit( 'User_talk:' + username, Math.random().toString() );
- } );
-
- // log in
- UserLoginPage.login( username, password );
-
- // check
- assert.equal( UserMessagePage.usermessage.getText(), 'You have a new message (last change).' );
-
- } );
-
} );