From b781ccb2c2960c9cfe007baffe1c3df2039fc62d Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Wed, 8 May 2019 14:05:44 -0700 Subject: [PATCH] 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 --- tests/selenium/pageobjects/history.page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1