[BrowserTest] Fix the lists and indentation screenshot

Capture the whole button and menu.

Change-Id: I035109916a90efbd12e5f3ddb58b98a53b8e57d3
This commit is contained in:
Amir E. Aharoni 2015-03-26 15:57:42 +02:00
parent 8eb5ca1536
commit f7c2edf886
2 changed files with 2 additions and 1 deletions

View file

@ -297,7 +297,7 @@ Then(/^I should see list and indentation dropdown$/) do
Screenshot.capture( Screenshot.capture(
@browser, @browser,
"#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", "#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
[@current_page.indentation_pull_down_element, @current_page.bullet_number_selector_element] [@current_page.indentation_button_element, @current_page.indentation_pull_down_element]
) )
end end

View file

@ -68,6 +68,7 @@ class VisualEditorPage
div(:heading_dropdown_menus, class: 'oo-ui-toolGroup-tools oo-ui-clippableElement-clippable', index: 1) div(:heading_dropdown_menus, class: 'oo-ui-toolGroup-tools oo-ui-clippableElement-clippable', index: 1)
div(:window_frame, css: 'div.oo-ui-window-setup > div.oo-ui-window-frame') div(:window_frame, css: 'div.oo-ui-window-setup > div.oo-ui-window-frame')
span(:increase_indentation, class: 'oo-ui-iconElement-icon oo-ui-icon-indent-list') span(:increase_indentation, class: 'oo-ui-iconElement-icon oo-ui-icon-indent-list')
div(:indentation_button, class: 've-test-toolbar-structure')
div(:indentation_pull_down, css: '.ve-test-toolbar-structure .oo-ui-clippableElement-clippable') div(:indentation_pull_down, css: '.ve-test-toolbar-structure .oo-ui-clippableElement-clippable')
span(:insert_citation, css: '.ve-ui-nodeDialog > div:nth-child(1) > div:nth-child(1) > div:nth-child(3) > div:nth-child(1) > a:nth-child(1) > span:nth-child(2) span(:insert_citation, css: '.ve-ui-nodeDialog > div:nth-child(1) > div:nth-child(1) > div:nth-child(3) > div:nth-child(1) > a:nth-child(1) > span:nth-child(2)
') ')