Fix LanguageScreenshotBot by using an existing article

LanguageScreenshotBot failed because it tries to open VisualEditor on a
page that does not exist.

Bug: T162454
Change-Id: I5539c54b7c0ce1f302df0962dad19797d26953da
This commit is contained in:
Željko Filipin 2017-04-11 13:53:58 +02:00 committed by Ed Sanders
parent 6654de8f0b
commit ca46a67843
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@
driver.manage().timeouts().setScriptTimeout( 40000 ); driver.manage().timeouts().setScriptTimeout( 40000 );
driver.manage().window().setSize( 1200, 1000 ); driver.manage().window().setSize( 1200, 1000 );
driver.get( 'https://en.wikipedia.org/wiki/PageDoesNotExist?veaction=edit&uselang=' + lang ); driver.get( 'https://en.wikipedia.org/wiki/Help:Sample_page?veaction=edit&uselang=' + lang );
driver.wait( driver.wait(
driver.executeAsyncScript( driver.executeAsyncScript(
// This function is converted to a string and executed in the browser // This function is converted to a string and executed in the browser

View file

@ -18,7 +18,7 @@
done( done(
seleniumUtils.getBoundingRect( [ seleniumUtils.getBoundingRect( [
ve.init.target.toolbar.$element[ 0 ], ve.init.target.toolbar.$element[ 0 ],
$( '#ca-nstab-main' )[ 0 ] $( '#p-namespaces' )[ 0 ]
] ) ] )
); );
}, },