mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
selenium: Toolbar should open insert menu
Bug: T296187 Change-Id: I4af64851d95a5bca26d8ae6ed5fcd9b0d13aba55
This commit is contained in:
parent
08e72061ac
commit
5347c6adf6
|
@ -8,6 +8,7 @@ class EditPage extends Page {
|
|||
get helpPopup() { return $( '.ve-ui-mwHelpPopupTool-items' ); }
|
||||
get helpElement() { return $( '.oo-ui-tool-name-help' ); }
|
||||
get insert() { return $( '.ve-ui-toolbar-group-insert' ); }
|
||||
get insertMenu() { return $( '.oo-ui-tool-name-media' ); }
|
||||
get insertTableElement() { return $( '.oo-ui-tool-name-insertTable' ); }
|
||||
get insertedTable() { return $( 'table.ve-ce-branchNode' ); }
|
||||
get notices() { return $( '.ve-ui-mwNoticesPopupTool-items' ); }
|
||||
|
|
|
@ -49,4 +49,10 @@ describe( 'Toolbar', function () {
|
|||
assert( await EditPage.specialCharacterMenu.isDisplayed() );
|
||||
} );
|
||||
|
||||
it( 'should open insert menu', async function () {
|
||||
await EditPage.insert.click();
|
||||
|
||||
assert( await EditPage.insertMenu.isDisplayed() );
|
||||
} );
|
||||
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue