'use strict';
const assert = require( 'assert' ),
EditPage = require( '../pageobjects/edit.page' ),
- HistoryPage = require( '../pageobjects/history.page' );
+ HistoryPage = require( '../pageobjects/history.page' ),
+ UserLoginPage = require( '../pageobjects/userlogin.page' );
describe( 'Page', function () {
var content,
name;
+ before( function () {
+ // disable VisualEditor welcome dialog
+ UserLoginPage.open();
+ browser.localStorage( 'POST', { key: 've-beta-welcome-dialog', value: '1' } );
+ } );
+
beforeEach( function () {
browser.deleteCookie();
content = Math.random().toString();
var password,
username;
+ before( function () {
+ // disable VisualEditor welcome dialog
+ UserLoginPage.open();
+ browser.localStorage( 'POST', { key: 've-beta-welcome-dialog', value: '1' } );
+ } );
+
beforeEach( function () {
browser.deleteCookie();
username = `User-${Math.random().toString()}`;