Merge "Replace old URLs in SampleTest"
[lhc/web/wiklou.git] / tests / selenium / pageobjects / history.page.js
index 3f75243..730eff3 100644 (file)
@@ -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