mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "[BrowserTest] consolidate some duplicate elements"
This commit is contained in:
commit
7416393354
|
@ -13,7 +13,7 @@ Given(/^I can see the References User Interface$/) do
|
|||
end
|
||||
|
||||
When(/^I click Insert references list$/) do
|
||||
on(VisualEditorPage).insert_references_list_element.when_present.click
|
||||
on(VisualEditorPage).insert_element.when_present.click
|
||||
end
|
||||
|
||||
When(/^I click Reference$/) do
|
||||
|
|
|
@ -49,5 +49,5 @@ Then(/^I should see a list of template suggestions$/) do
|
|||
end
|
||||
|
||||
Then(/^I should see the Insert template button$/) do
|
||||
expect(on(VisualEditorPage).insert_template_element.when_present).to be_visible
|
||||
expect(on(VisualEditorPage).insert_element.when_present).to be_visible
|
||||
end
|
||||
|
|
|
@ -63,8 +63,7 @@ class VisualEditorPage
|
|||
span(:insert_menu, class: 'oo-ui-popupToolGroup-handle', index: 5)
|
||||
div(:insert_pull_down, class: 'oo-ui-toolGroup-tools oo-ui-clippableElement-clippable', index: 5)
|
||||
div(:insert_references, class: 'oo-ui-processDialog-location')
|
||||
span(:insert_references_list, text: 'Insert')
|
||||
span(:insert_template, text: 'Insert')
|
||||
span(:insert, text: 'Insert')
|
||||
a(:internal_link, class: 've-ce-linkAnnotation ve-ce-mwInternalLinkAnnotation')
|
||||
div(:ip_warning, class: 've-ui-mwNoticesPopupTool-item', text: /Your IP address/)
|
||||
div(:language_notification, class: 'tipsy-inner')
|
||||
|
@ -73,7 +72,6 @@ class VisualEditorPage
|
|||
div(:link_overlay_does_not_exist, text: /New page/)
|
||||
div(:link_overlay_external_link, text: /External link.+New page/m)
|
||||
div(:link_overlay_wiki_page, text: /Matching page/)
|
||||
span(:media_apply_changes, text: 'Insert')
|
||||
unordered_list(:media_caption, class: 've-ui-contextMenuWidget')
|
||||
span(:media_exit, text: 'Return to save form')
|
||||
figure(:media_image, index: 0)
|
||||
|
|
Loading…
Reference in a new issue