From d941263d334ad454149f57ea053918ab55b114ce Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Fri, 27 Mar 2015 14:11:14 +0300 Subject: [PATCH] [BrowserTest] Add padding to some more screenshots Change-Id: If103488927e3309479b7b5f9f380135052c7ac9d --- .../language_screenshot_steps.rb | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/modules/ve-mw/tests/browser/features/step_definitions/language_screenshot_steps.rb b/modules/ve-mw/tests/browser/features/step_definitions/language_screenshot_steps.rb index f2b2504c01..c54f9c9deb 100644 --- a/modules/ve-mw/tests/browser/features/step_definitions/language_screenshot_steps.rb +++ b/modules/ve-mw/tests/browser/features/step_definitions/language_screenshot_steps.rb @@ -106,7 +106,8 @@ When(/^I click on category in hamburger menu$/) do Screenshot.capture( @browser, "VisualEditor_category_item-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", - [@current_page.hamburger_menu_element, @current_page.page_option_menu_element] + [@current_page.hamburger_menu_element, @current_page.page_option_menu_element], + 3 ) on(VisualEditorPage).category_link_element.when_present.click @@ -139,7 +140,8 @@ Then(/^I should see category dialog box$/) do Screenshot.capture( @browser, "#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", - [@current_page.window_frame_element] + [@current_page.window_frame_element], + 3 ) end @@ -177,7 +179,8 @@ Then(/^I should see pull-down menu containing Page Settings$/) do Screenshot.capture( @browser, "#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", - [@current_page.disabled_save_button_element, @current_page.page_option_menu_element] + [@current_page.disabled_save_button_element, @current_page.page_option_menu_element], + 3 ) end @@ -256,7 +259,8 @@ Then(/^I should see save changes dialog box$/) do Screenshot.capture( @browser, "#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", - [@current_page.window_frame_element] + [@current_page.window_frame_element], + 3 ) end @@ -266,7 +270,8 @@ Then(/^I should see Page settings dialog box$/) do Screenshot.capture( @browser, "#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", - [@current_page.window_frame_element] + [@current_page.window_frame_element], + 3 ) Screenshot.capture( @@ -379,7 +384,8 @@ Then(/^I should see the Cite button$/) do Screenshot.capture( @browser, "#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", - [@current_page.cite_button_element] + [@current_page.cite_button_element], + 3 ) end @@ -441,7 +447,8 @@ Then(/^I should see the formula insertion menu$/) do Screenshot.capture( @browser, "#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", - [@current_page.window_frame_element, @current_page.formula_image_element] + [@current_page.window_frame_element, @current_page.formula_image_element], + 3 ) end