selenium: Toolbar should open help popup

Bug: T296187
Change-Id: Ic818a97405e93e7545b6655073a62fd7e5b4e8a3
This commit is contained in:
Esther Akinloose 2022-11-30 12:36:42 +00:00
parent 34fbdd781b
commit 329574d645
2 changed files with 8 additions and 0 deletions

View file

@ -5,6 +5,8 @@ class EditPage extends Page {
get content() { return $( '#content' ); }
get edited() { return $( '*=Your edit was saved' ); }
get helpPopup() { return $( '.ve-ui-mwHelpPopupTool-items' ); }
get helpElement() { return $( '.oo-ui-tool-name-help' ); }
get insert() { return $( '.ve-ui-toolbar-group-insert' ); }
get insertTableElement() { return $( '.oo-ui-tool-name-insertTable' ); }
get insertedTable() { return $( 'table.ve-ce-branchNode' ); }

View file

@ -29,4 +29,10 @@ describe( 'Toolbar', function () {
assert( await EditPage.switchEditorPopup.isDisplayed() );
} );
it( 'should open help popup', async function () {
await EditPage.helpElement.click();
assert( await EditPage.helpPopup.isDisplayed() );
} );
} );