[BrowserTest] Add padding to Insert button screenshots

Change-Id: Ic79942bddf811b7f219424c9ae317c7664f9a193
This commit is contained in:
Amir E. Aharoni 2015-03-26 15:23:49 +02:00
parent b62be2355e
commit 8eb5ca1536

View file

@ -188,7 +188,8 @@ Then(/^I take screenshot of insert pull-down menu$/) do
Screenshot.capture(
@browser,
"#{@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)
@ -196,7 +197,8 @@ Then(/^I take screenshot of insert pull-down menu$/) do
Screenshot.capture(
@browser,
"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')
@ -205,7 +207,8 @@ Then(/^I take screenshot of insert pull-down menu$/) do
Screenshot.capture(
@browser,
"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')
@ -214,7 +217,8 @@ Then(/^I take screenshot of insert pull-down menu$/) do
Screenshot.capture(
@browser,
"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')
@ -223,7 +227,8 @@ Then(/^I take screenshot of insert pull-down menu$/) do
Screenshot.capture(
@browser,
"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