diff options
Diffstat (limited to 'tests/selenium/pageobjects/undo.page.js')
-rw-r--r-- | tests/selenium/pageobjects/undo.page.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/selenium/pageobjects/undo.page.js b/tests/selenium/pageobjects/undo.page.js index a926966935fa..cfc417df1400 100644 --- a/tests/selenium/pageobjects/undo.page.js +++ b/tests/selenium/pageobjects/undo.page.js @@ -6,15 +6,15 @@ class UndoPage extends Page { get save() { return $( '#wpSave' ); } - undo( title, previousRev, undoRev ) { - super.openTitle( title, { + async undo( title, previousRev, undoRev ) { + await super.openTitle( title, { action: 'edit', undoafter: previousRev, undo: undoRev, // T276783: suppress welcome dialog that would prevent save if VisualEditor is installed vehidebetadialog: 1 } ); - this.save.click(); + await this.save.click(); } } |