diff options
Diffstat (limited to 'tests/selenium/pageobjects/protect.page.js')
-rw-r--r-- | tests/selenium/pageobjects/protect.page.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/selenium/pageobjects/protect.page.js b/tests/selenium/pageobjects/protect.page.js index 16780c6c46d8..7884ded487b7 100644 --- a/tests/selenium/pageobjects/protect.page.js +++ b/tests/selenium/pageobjects/protect.page.js @@ -11,11 +11,11 @@ class ProtectPage extends Page { super.openTitle( title, { action: 'protect' } ); } - protect( title, reason, editProtect ) { - this.open( title ); - this.reason.setValue( reason ); - this.editProtectSelect.selectByVisibleText( editProtect ); - this.submit.click(); + async protect( title, reason, editProtect ) { + await this.open( title ); + await this.reason.setValue( reason ); + await this.editProtectSelect.selectByVisibleText( editProtect ); + await this.submit.click(); } } |