mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "[BrowserTest] click More button, no iframes"
This commit is contained in:
commit
48cfd29886
|
@ -15,9 +15,21 @@ Feature: VisualEditor general text markup features
|
|||
Examples:
|
||||
| type_of_markup | expected_markup_text |
|
||||
| Bold | '''General Markup VisualEditor Test''' |
|
||||
| Computer Code | <code>General Markup VisualEditor Test</code> |
|
||||
| Italics | ''General Markup VisualEditor Test'' |
|
||||
|
||||
|
||||
Scenario Outline: VisualEditor more general markup
|
||||
When I click the text style menu
|
||||
And I click the More option
|
||||
And I click the <type_of_markup> menu option
|
||||
And I click Save page
|
||||
And I click Review your changes
|
||||
Then <expected_markup_text> should appear in the diff view
|
||||
And I can click the X on the save box
|
||||
Examples:
|
||||
| type_of_markup | expected_markup_text |
|
||||
| Computer Code | <code>General Markup VisualEditor Test</code> |
|
||||
| Strikethrough | <s>General Markup VisualEditor Test</s> |
|
||||
| Subscript | <sub>General Markup VisualEditor Test</sub> |
|
||||
| Superscript | <sup>General Markup VisualEditor Test</sup> |
|
||||
| Underline | <u>General Markup VisualEditor Test</u> |
|
||||
| Underline | <u>General Markup VisualEditor Test</u> |
|
|
@ -1,3 +1,7 @@
|
|||
When(/^I click the More option$/) do
|
||||
on(VisualEditorPage).ve_more_markup_options_element.when_present(15).click
|
||||
end
|
||||
|
||||
When(/^I click the text style menu$/) do
|
||||
on(VisualEditorPage).ve_text_style_element.when_present(15).click
|
||||
end
|
||||
|
|
|
@ -69,6 +69,7 @@ class VisualEditorPage
|
|||
span(:ve_computer_code, class: "oo-ui-iconElement-icon oo-ui-icon-code")
|
||||
div(:ve_heading_menu, class: "oo-ui-iconElement-icon oo-ui-icon-down")
|
||||
span(:ve_link_icon, class: "oo-ui-iconElement-icon oo-ui-icon-link")
|
||||
span(:ve_more_markup_options, class: "oo-ui-tool-title-text", text: "More")
|
||||
span(:ve_italics, class: "oo-ui-iconElement-icon oo-ui-icon-italic-i")
|
||||
span(:ve_media_menu, class: "oo-ui-iconElement-icon oo-ui-icon-picture")
|
||||
span(:ve_references, class: "oo-ui-iconElement-icon oo-ui-icon-references")
|
||||
|
|
Loading…
Reference in a new issue