X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fselenium%2Fpageobjects%2Fhistory.page.js;h=730eff36c4477dfcc5d194351db339bdd1f3034a;hb=7388b7b62b842ef1e80faa677656a26a90803ece;hp=3f75243c8f34fbf65c0fe238425038ba9675170c;hpb=04fd74f44fe5d5cdae7551ef0cc7baac1a87d18d;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/selenium/pageobjects/history.page.js b/tests/selenium/pageobjects/history.page.js index 3f75243c8f..730eff36c4 100644 --- a/tests/selenium/pageobjects/history.page.js +++ b/tests/selenium/pageobjects/history.page.js @@ -29,7 +29,7 @@ class HistoryPage extends Page { } vandalizePage( name, content ) { - let vandalUsername = 'Evil_' + browser.options.username; + const vandalUsername = 'Evil_' + browser.options.username; browser.call( function () { return Api.edit( name, content ); @@ -42,7 +42,7 @@ class HistoryPage extends Page { } ); browser.call( function () { - Api.edit( + return Api.edit( name, 'Vandalized: ' + content, vandalUsername