aboutsummaryrefslogtreecommitdiffstats
path: root/tests/selenium/pageobjects/edit.page.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/selenium/pageobjects/edit.page.js')
-rw-r--r--tests/selenium/pageobjects/edit.page.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/selenium/pageobjects/edit.page.js b/tests/selenium/pageobjects/edit.page.js
index 008be2bf2bc8..15cc9cd935e9 100644
--- a/tests/selenium/pageobjects/edit.page.js
+++ b/tests/selenium/pageobjects/edit.page.js
@@ -14,16 +14,16 @@ class EditPage extends Page {
super.openTitle( title, { action: 'edit', vehidebetadialog: 1, hidewelcomedialog: 1 } );
}
- preview( name, content ) {
- this.openForEditing( name );
- this.content.setValue( content );
- this.previewButton.click();
+ async preview( name, content ) {
+ await this.openForEditing( name );
+ await this.content.setValue( content );
+ await this.previewButton.click();
}
- edit( name, content ) {
- this.openForEditing( name );
- this.content.setValue( content );
- this.save.click();
+ async edit( name, content ) {
+ await this.openForEditing( name );
+ await this.content.setValue( content );
+ await this.save.click();
}
}