diff --git a/modules/ve-mw/tests/browser/features/cite.feature b/modules/ve-mw/tests/browser/features/cite.feature index 061706dcc5..b601c6f18b 100644 --- a/modules/ve-mw/tests/browser/features/cite.feature +++ b/modules/ve-mw/tests/browser/features/cite.feature @@ -75,4 +75,6 @@ Feature: VisualEditor Cite Scenario: Basic When I click Basic - Then I should see the VisualEditor interface \ No newline at end of file + Then I should see the VisualEditor interface + And I should see the Options use this group text + And I should see the General references \ No newline at end of file diff --git a/modules/ve-mw/tests/browser/features/step_definitions/cite_steps.rb b/modules/ve-mw/tests/browser/features/step_definitions/cite_steps.rb index 3e7af40c39..9175e3891e 100644 --- a/modules/ve-mw/tests/browser/features/step_definitions/cite_steps.rb +++ b/modules/ve-mw/tests/browser/features/step_definitions/cite_steps.rb @@ -138,7 +138,18 @@ Then(/^diff view should show the Website citation added$/) do end end +Then(/^I should see the General references$/) do + expect(on(VisualEditorPage).cite_group_name_textarea_element).to be_visible +end + +Then(/^I should see the Options use this group text$/) do + expect(on(VisualEditorPage).cite_basic_options_area_element.text).to match /Options.+Use this group/m +end + Then(/^I should see the VisualEditor interface$/) do expect(on(VisualEditorPage).cite_visualeditor_user_interface_element).to be_visible end + + + diff --git a/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb b/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb index 900c113363..0a3bc4bbe1 100644 --- a/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb +++ b/modules/ve-mw/tests/browser/features/support/pages/visual_editor_page.rb @@ -100,8 +100,11 @@ class VisualEditorPage a(:cite_add_more_information_button, css: ".ve-ui-mwParameterPage-more a", index: 7, frame: frame) a(:book_add_more_information_button, css: ".ve-ui-mwParameterPage-more a", index: 7, frame: frame) div(:cite_visualeditor_user_interface, css: ".ve-ui-surfaceWidget", frame: frame) + div(:cite_basic_options_area, class: "oo-ui-layout oo-ui-iconElement oo-ui-labelElement oo-ui-fieldsetLayout", frame: frame) + #text_field(:cite_custom_field_name, css: ".oo-ui-textInputWidget-decorated > input:nth-child(1)", frame: frame) text_field(:cite_custom_field_name, css: ".oo-ui-searchWidget-query > div:nth-child(1) > input:nth-child(1)", frame: frame) + div(:cite_group_name_textarea, class: "oo-ui-widget oo-ui-widget-enabled oo-ui-inputWidget oo-ui-indicatorElement oo-ui-textInputWidget" , frame: frame) text_area(:cite_new_website_field, css: "div.oo-ui-layout:nth-child(10) > div:nth-child(3) > div:nth-child(1) > textarea:nth-child(1)", frame: frame) div(:cite_new_field_label, css: ".oo-ui-optionWidget", frame: frame) div(:cite_show_more_fields, class: "ve-ui-mwMoreParametersResultWidget-label", frame: frame)