mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
[BrowserTest] Fixed language screenshot scenario
VisualEditor no longer has cancel button. Change-Id: Ia06469c23cc527ae87170d6aa5b9066fbc9933a6 Paired-With: Amir Aharoni
This commit is contained in:
parent
4ab4ad64dc
commit
4d036f6fe1
|
@ -139,10 +139,10 @@ Feature: Language Screenshot
|
|||
Then I should see the formula insertion menu
|
||||
|
||||
@language_screenshot
|
||||
Scenario: VisualEditor_cancel_save
|
||||
Scenario: VisualEditor_toolbar_actions
|
||||
Given I am logged in
|
||||
When I am edit language screenshot page with Testing toolbar
|
||||
Then I should see VisualEditor toolbar containing cancel and save button
|
||||
Then I should see action buttons in the end of the VisualEditor toolbar
|
||||
|
||||
@language_screenshot
|
||||
Scenario: VisualEditor_references_list
|
||||
|
|
|
@ -274,12 +274,12 @@ Then(/^I should see the formula insertion menu$/) do
|
|||
capture_screenshot("#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", [@current_page.iframe_element, @current_page.formula_image_element], nil, 0)
|
||||
end
|
||||
|
||||
Then(/^I should see VisualEditor toolbar containing cancel and save button$/) do
|
||||
Then(/^I should see action buttons in the end of the VisualEditor toolbar$/) do
|
||||
on(VisualEditorPage) do |page|
|
||||
page.toolbar_action_element.when_present.should be_visible
|
||||
page.toolbar_actions_element.when_present.should be_visible
|
||||
page.save_enabled_element.when_present(10).should be_visible
|
||||
end
|
||||
capture_screenshot("#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", [@current_page.toolbar_action_element])
|
||||
capture_screenshot("#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", [@current_page.toolbar_actions_element])
|
||||
end
|
||||
|
||||
Then(/^I should see References list dialog box$/) do
|
||||
|
|
|
@ -87,7 +87,7 @@ class VisualEditorPage
|
|||
a(:internal_link, class: "ve-ce-linkAnnotation ve-ce-mwInternalLinkAnnotation")
|
||||
unordered_list(:popup_icon, class: "ve-ui-context-menu")
|
||||
span(:basic_reference, class: "oo-ui-iconElement-icon oo-ui-icon-reference")
|
||||
div(:toolbar_action, class: "oo-ui-toolbar-actions")
|
||||
div(:toolbar_actions, class: "oo-ui-toolbar-actions")
|
||||
span(:media_insert_menu, class: "oo-ui-tool-name-media")
|
||||
span(:template_insert_menu, class: "oo-ui-tool-name-transclusion")
|
||||
span(:ref_list_insert_menu, class: "oo-ui-tool-name-referencesList")
|
||||
|
|
Loading…
Reference in a new issue