[BrowserTest] Redefine the Apply changes element for language screenshot

Redefine the element to include the full button
and remove the padding, which is now not needed.

Change-Id: I1ac244bc97b38c9d8b47ddd778a653783a748a49
This commit is contained in:
Amir E. Aharoni 2015-03-27 14:16:48 +03:00
parent d941263d33
commit 8cb387a269
2 changed files with 2 additions and 3 deletions

View file

@ -299,8 +299,7 @@ Then(/^I should see Page settings dialog box$/) do
Screenshot.capture(
@browser,
"VisualEditor_Apply_Changes-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
[@current_page.settings_apply_button_element],
3
[@current_page.settings_apply_button_element]
)
end

View file

@ -146,7 +146,7 @@ class VisualEditorPage
div(:save_enabled, css: 'div.ve-init-mw-viewPageTarget-toolbar-actions > div.oo-ui-flaggedElement-progressive.oo-ui-widget-enabled')
a(:second_reference, text: '[1]', index: 2)
span(:second_save_page, css: '.oo-ui-processDialog-actions-primary > div:nth-child(1) > a:nth-child(1) > span:nth-child(2)')
div(:settings_apply_button, css: '.oo-ui-window-frame .oo-ui-buttonElement.oo-ui-flaggedElement-progressive')
div(:settings_apply_button, css: '.oo-ui-window-frame .oo-ui-processDialog-actions-primary')
span(:special_character, class: 'oo-ui-iconElement-icon oo-ui-icon-special-character')
a(:subheading1, text: /Sub-heading 1/)
a(:subheading2, text: /Sub-heading 2/)