mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
[BrowserTest] Fix the lists and indentation screenshot
Capture the whole button and menu. Change-Id: I035109916a90efbd12e5f3ddb58b98a53b8e57d3
This commit is contained in:
parent
8eb5ca1536
commit
f7c2edf886
|
@ -297,7 +297,7 @@ Then(/^I should see list and indentation dropdown$/) do
|
|||
Screenshot.capture(
|
||||
@browser,
|
||||
"#{@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
|
||||
|
||||
|
|
|
@ -68,6 +68,7 @@ class VisualEditorPage
|
|||
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')
|
||||
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')
|
||||
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)
|
||||
')
|
||||
|
|
Loading…
Reference in a new issue