screenshots: Suppress welcome dialog with query string

The code approach appears to suffer from a race condition.

Change-Id: I1328907b8fb55265275493b3b0d2a9288afea53c
This commit is contained in:
Ed Sanders 2020-06-25 16:10:23 +01:00
parent a0241f9345
commit 085d2443d2
2 changed files with 2 additions and 3 deletions

View file

@ -100,8 +100,7 @@ module.exports = function () {
}
};
// Suppress welcome dialog
mw.storage.set( 've-beta-welcome-dialog', 1 );
// Welcome dialog suppressed by query string (vehidebetadialog)
// Suppress user education indicators
mw.storage.set( 've-hideusered', 1 );
mw.hook( 've.activationComplete' ).add( function () {

View file

@ -31,7 +31,7 @@ function createScreenshotEnvironment( test, beforeEach ) {
driver.manage().timeouts().setScriptTimeout( TIMEOUT );
driver.manage().window().setSize( 1200, 1000 );
driver.get( 'https://en.wikipedia.org/wiki/Help:Sample_page?veaction=edit&uselang=' + lang )
driver.get( 'https://en.wikipedia.org/wiki/Help:Sample_page?veaction=edit&vehidebetadialog=1&uselang=' + lang )
.then( null, function ( e ) {
console.error( e.message );
} );