mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Merge "selenium: Wait for VisualEditor to load"
This commit is contained in:
commit
86d01b6c04
|
@ -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();
|
||||
|
|
|
@ -12,7 +12,7 @@ describe( 'Content Editable', function () {
|
|||
|
||||
await EditPage.openForEditing( name );
|
||||
|
||||
await EditPage.notices.waitForDisplayed();
|
||||
await EditPage.activationComplete();
|
||||
assert( await EditPage.notices.isDisplayed() );
|
||||
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue