selenium: Toolbar should open insert menu

Bug: T296187
Change-Id: I4af64851d95a5bca26d8ae6ed5fcd9b0d13aba55
This commit is contained in:
Esther Akinloose 2022-12-02 22:07:49 +00:00
parent 08e72061ac
commit 5347c6adf6
2 changed files with 7 additions and 0 deletions

View file

@ -8,6 +8,7 @@ class EditPage extends Page {
get helpPopup() { return $( '.ve-ui-mwHelpPopupTool-items' ); } get helpPopup() { return $( '.ve-ui-mwHelpPopupTool-items' ); }
get helpElement() { return $( '.oo-ui-tool-name-help' ); } get helpElement() { return $( '.oo-ui-tool-name-help' ); }
get insert() { return $( '.ve-ui-toolbar-group-insert' ); } 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 insertTableElement() { return $( '.oo-ui-tool-name-insertTable' ); }
get insertedTable() { return $( 'table.ve-ce-branchNode' ); } get insertedTable() { return $( 'table.ve-ce-branchNode' ); }
get notices() { return $( '.ve-ui-mwNoticesPopupTool-items' ); } get notices() { return $( '.ve-ui-mwNoticesPopupTool-items' ); }

View file

@ -49,4 +49,10 @@ describe( 'Toolbar', function () {
assert( await EditPage.specialCharacterMenu.isDisplayed() ); assert( await EditPage.specialCharacterMenu.isDisplayed() );
} ); } );
it( 'should open insert menu', async function () {
await EditPage.insert.click();
assert( await EditPage.insertMenu.isDisplayed() );
} );
} ); } );