From ca46a67843a7a75e7bb19d9b05aa4a24033b78e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDeljko=20Filipin?= Date: Tue, 11 Apr 2017 13:53:58 +0200 Subject: [PATCH] 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 --- build/screenshots.js | 2 +- build/screenshots.userGuide.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/screenshots.js b/build/screenshots.js index 9f5fd887c6..00fccad3ef 100644 --- a/build/screenshots.js +++ b/build/screenshots.js @@ -31,7 +31,7 @@ driver.manage().timeouts().setScriptTimeout( 40000 ); 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.executeAsyncScript( // This function is converted to a string and executed in the browser diff --git a/build/screenshots.userGuide.js b/build/screenshots.userGuide.js index 14b11ab15d..5b5637250a 100644 --- a/build/screenshots.userGuide.js +++ b/build/screenshots.userGuide.js @@ -18,7 +18,7 @@ done( seleniumUtils.getBoundingRect( [ ve.init.target.toolbar.$element[ 0 ], - $( '#ca-nstab-main' )[ 0 ] + $( '#p-namespaces' )[ 0 ] ] ) ); },