Disable VisualEditor welcome dialog when running Selenium tests
[lhc/web/wiklou.git] / tests / selenium / specs / user.js
index 193095d..3f3872d 100644 (file)
@@ -9,6 +9,12 @@ describe( 'User', function () {
        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()}`;