[BrowserTest]Fixing options test

Fixed the unique selector for failing cases
Change-Id: I41bde7245328303fcc8c5afea8f7228c1d36b915
This commit is contained in:
ryasmeen@wikimedia.org 2014-12-16 14:53:16 -08:00
parent 6ca0046599
commit 5eff6e8aa1

View file

@ -40,13 +40,13 @@ class VisualEditorPage
span(:confirm_switch_cancel, text: 'Resume editing')
span(:confirm_switch_cancel_on_switch, text: 'Cancel')
span(:confirm_switch_discard, text: 'Discard changes')
span(:option_to_always_show_TOC, css: 'div.oo-ui-fieldLayout:nth-child(4) > div:nth-child(3) > div:nth-child(1) > div:nth-child(1) > a:nth-child(1) > span:nth-child(2)')
span(:option_to_always_show_TOC, css: 'div.oo-ui-fieldLayout-align-top:nth-child(4) > div:nth-child(2) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > a:nth-child(1) > span:nth-child(2)')
div(:content, class: 've-ce-branchNode')
span(:decrease_indentation, class: 'oo-ui-iconElement-icon oo-ui-icon-outdent-list')
text_area(:describe_change, index: 0)
div(:diff_view, class: 've-ui-mwSaveDialog-viewer')
div(:disabled_save_button, class: 'oo-ui-widget oo-ui-widget-disabled oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-flaggedElement-constructive oo-ui-flaggedElement-primary oo-ui-buttonWidget ve-ui-toolbar-saveButton oo-ui-image-constructive')
text_field(:display_title_textbox, css: 'label.oo-ui-layout:nth-child(4) > div:nth-child(1) > div:nth-child(1) > input:nth-child(1)')
text_field(:display_title_textbox, css: 'div.oo-ui-fieldLayout-align-inline:nth-child(4) > label:nth-child(1) > div:nth-child(1) > div:nth-child(1) > input:nth-child(1)')
text_field(:redirect_page_name_textbox, css: '.oo-ui-flaggedElement-invalid > input:nth-child(1)')
span(:downarrow, class: 'oo-ui-indicatorElement-indicator oo-ui-indicator-down')
a(:edit_ve, title: /Edit this page with VisualEditor/)
@ -87,7 +87,7 @@ class VisualEditorPage
checkbox(:minor_edit, id: 'wpMinoredit')
div(:no_unused_fields, text: 'No unused fields')
a(:new_link, class: 've-ce-linkAnnotation ve-ce-mwInternalLinkAnnotation new')
span(:options_categories, class: 'oo-ui-tool-title-text', text: 'Categories')
span(:options_categories, class: 'oo-ui-tool-title', text: 'Categories')
span(:options_in_hamburger, class: 'oo-ui-tool-title', text: 'Options')
span(:option_advanced_settings, class: 'oo-ui-tool-title', text: 'Advanced settings')
span(:option_page_settings, class: 'oo-ui-tool-title', text: 'Page settings')