Zfilipin has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/363331 )

Change subject: WIP disable VisualEditor welcome dialog
......................................................................

WIP disable VisualEditor welcome dialog

Bug: T164721
Change-Id: I7b5f73c6fbaaa221ac1b689344f9015fb903220f
---
M tests/selenium/specs/page.js
M tests/selenium/specs/user.js
2 files changed, 14 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/31/363331/1

diff --git a/tests/selenium/specs/page.js b/tests/selenium/specs/page.js
index da80aaf..efe5a2d 100644
--- a/tests/selenium/specs/page.js
+++ b/tests/selenium/specs/page.js
@@ -1,13 +1,20 @@
 'use strict';
 const assert = require( 'assert' ),
        HistoryPage = require( '../pageobjects/history.page' ),
-       EditPage = require( '../pageobjects/edit.page' );
+       EditPage = require( '../pageobjects/edit.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 () {
                content = Math.random().toString();
                name = Math.random().toString();
diff --git a/tests/selenium/specs/user.js b/tests/selenium/specs/user.js
index 6746c5b..634949f 100644
--- a/tests/selenium/specs/user.js
+++ b/tests/selenium/specs/user.js
@@ -10,6 +10,12 @@
        var password,
                username;
 
+       before( function () {
+               // disable VisualEditor welcome dialog
+               UserLoginPage.open();
+               browser.localStorage('POST', {key: 've-beta-welcome-dialog', 
value: '1'});
+       } );
+
        beforeEach( function () {
                username = `User-${Math.random().toString()}`;
                password = Math.random().toString();

-- 
To view, visit https://gerrit.wikimedia.org/r/363331
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7b5f73c6fbaaa221ac1b689344f9015fb903220f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Zfilipin <zfili...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to