Merge "selenium: Wait for VisualEditor to load"

This commit is contained in:
jenkins-bot 2022-02-21 12:22:52 +00:00 committed by Gerrit Code Review
commit 86d01b6c04
2 changed files with 9 additions and 1 deletions

View file

@ -9,5 +9,13 @@ class EditPage extends Page {
super.openTitle( title, { veaction: 'edit', vehidebetadialog: 1, hidewelcomedialog: 1 } );
}
activationComplete() {
return browser.executeAsync( function ( done ) {
mw.hook( 've.activationComplete' ).add( function () {
done();
} );
} );
}
}
module.exports = new EditPage();

View file

@ -12,7 +12,7 @@ describe( 'Content Editable', function () {
await EditPage.openForEditing( name );
await EditPage.notices.waitForDisplayed();
await EditPage.activationComplete();
assert( await EditPage.notices.isDisplayed() );
} );