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 () {
password = Math.random().toString();
} );
- it( 'should be able to create account', function () {
+ // Disable due to broken/flakiness (T247580)
+ it.skip( 'should be able to create account', function () {
// create
CreateAccountPage.createAccount( username, password );
} );
- it( 'should be able to log in', function () {
+ // Disable due to broken/flakiness (T247580)
+ it.skip( 'should be able to log in', function () {
// create
browser.call( function () {
} );
- it( 'should be able to change preferences', function () {
-
+ // Disabled due to flakiness (T199446)
+ it.skip( 'should be able to change preferences', function () {
var realName = Math.random().toString();
// create
} );
- 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).' );
-
- } );
-
} );