mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
[BrowserTest] Add padding to Insert button screenshots
Change-Id: Ic79942bddf811b7f219424c9ae317c7664f9a193
This commit is contained in:
parent
b62be2355e
commit
8eb5ca1536
|
@ -188,7 +188,8 @@ Then(/^I take screenshot of insert pull-down menu$/) do
|
||||||
Screenshot.capture(
|
Screenshot.capture(
|
||||||
@browser,
|
@browser,
|
||||||
"#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
|
"#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
|
||||||
[@current_page.insert_button_element, @current_page.insert_pull_down_element]
|
[@current_page.insert_button_element, @current_page.insert_pull_down_element],
|
||||||
|
3
|
||||||
)
|
)
|
||||||
|
|
||||||
Screenshot.highlight(@current_page, @current_page.media_insert_menu_element)
|
Screenshot.highlight(@current_page, @current_page.media_insert_menu_element)
|
||||||
|
@ -196,7 +197,8 @@ Then(/^I take screenshot of insert pull-down menu$/) do
|
||||||
Screenshot.capture(
|
Screenshot.capture(
|
||||||
@browser,
|
@browser,
|
||||||
"VisualEditor_Media_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
|
"VisualEditor_Media_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
|
||||||
[@current_page.insert_button_element, @current_page.insert_pull_down_element]
|
[@current_page.insert_button_element, @current_page.insert_pull_down_element],
|
||||||
|
3
|
||||||
)
|
)
|
||||||
|
|
||||||
Screenshot.highlight(@current_page, @current_page.media_insert_menu_element, '#FFFFFF')
|
Screenshot.highlight(@current_page, @current_page.media_insert_menu_element, '#FFFFFF')
|
||||||
|
@ -205,7 +207,8 @@ Then(/^I take screenshot of insert pull-down menu$/) do
|
||||||
Screenshot.capture(
|
Screenshot.capture(
|
||||||
@browser,
|
@browser,
|
||||||
"VisualEditor_Template_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
|
"VisualEditor_Template_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
|
||||||
[@current_page.insert_button_element, @current_page.insert_pull_down_element]
|
[@current_page.insert_button_element, @current_page.insert_pull_down_element],
|
||||||
|
3
|
||||||
)
|
)
|
||||||
|
|
||||||
Screenshot.highlight(@current_page, @current_page.template_insert_menu_element, '#FFFFFF')
|
Screenshot.highlight(@current_page, @current_page.template_insert_menu_element, '#FFFFFF')
|
||||||
|
@ -214,7 +217,8 @@ Then(/^I take screenshot of insert pull-down menu$/) do
|
||||||
Screenshot.capture(
|
Screenshot.capture(
|
||||||
@browser,
|
@browser,
|
||||||
"VisualEditor_References_List_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
|
"VisualEditor_References_List_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
|
||||||
[@current_page.insert_button_element, @current_page.insert_pull_down_element]
|
[@current_page.insert_button_element, @current_page.insert_pull_down_element],
|
||||||
|
3
|
||||||
)
|
)
|
||||||
|
|
||||||
Screenshot.highlight(@current_page, @current_page.ref_list_insert_menu_element, '#FFFFFF')
|
Screenshot.highlight(@current_page, @current_page.ref_list_insert_menu_element, '#FFFFFF')
|
||||||
|
@ -223,7 +227,8 @@ Then(/^I take screenshot of insert pull-down menu$/) do
|
||||||
Screenshot.capture(
|
Screenshot.capture(
|
||||||
@browser,
|
@browser,
|
||||||
"VisualEditor_Formula_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
|
"VisualEditor_Formula_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
|
||||||
[@current_page.insert_button_element, @current_page.insert_pull_down_element]
|
[@current_page.insert_button_element, @current_page.insert_pull_down_element],
|
||||||
|
3
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue