From: jdlrobson Date: Wed, 8 May 2019 21:05:44 +0000 (-0700) Subject: selenium: Asynchronous methods should be returned to browser.call() X-Git-Tag: 1.34.0-rc.0~1746 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=b781ccb2c2960c9cfe007baffe1c3df2039fc62d;p=lhc%2Fweb%2Fwiklou.git selenium: Asynchronous methods should be returned to browser.call() Api.edit is asynchronous and is wrapped in a browser.call but should be returned. Follows-up 341320457cd67. Bug: T220479 Change-Id: Id0e3549e93a967165bdc1bb758ddef8d59ccc300 --- diff --git a/tests/selenium/pageobjects/history.page.js b/tests/selenium/pageobjects/history.page.js index 3f75243c8f..52d614fba7 100644 --- a/tests/selenium/pageobjects/history.page.js +++ b/tests/selenium/pageobjects/history.page.js @@ -42,7 +42,7 @@ class HistoryPage extends Page { } ); browser.call( function () { - Api.edit( + return Api.edit( name, 'Vandalized: ' + content, vandalUsername