mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
selenium: Toolbar should open help popup
Bug: T296187 Change-Id: Ic818a97405e93e7545b6655073a62fd7e5b4e8a3
This commit is contained in:
parent
34fbdd781b
commit
329574d645
|
@ -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' ); }
|
||||
|
|
|
@ -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() );
|
||||
} );
|
||||
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue