jenkins-bot has submitted this change and it was merged. Change subject: QA: replace xpath with css now that it is supported ......................................................................
QA: replace xpath with css now that it is supported also newer revisions in Gemfile.lock from `bundle update` Bug: 61579 Change-Id: Ib8a12896bed6dc7d0349bc799a2b6b36c2a0bab8 --- M tests/browser/Gemfile.lock M tests/browser/features/support/pages/flow_page.rb 2 files changed, 17 insertions(+), 25 deletions(-) Approvals: Cmcmahon: Looks good to me, approved Spage: Looks good to me, approved jenkins-bot: Verified diff --git a/tests/browser/Gemfile.lock b/tests/browser/Gemfile.lock index 0a3470f..6b29163 100644 --- a/tests/browser/Gemfile.lock +++ b/tests/browser/Gemfile.lock @@ -2,19 +2,19 @@ remote: https://rubygems.org/ specs: builder (3.2.2) - childprocess (0.5.1) + childprocess (0.5.2) ffi (~> 1.0, >= 1.0.11) - cucumber (1.3.10) + cucumber (1.3.14) builder (>= 2.1.2) diff-lcs (>= 1.1.3) gherkin (~> 2.12) multi_json (>= 1.7.5, < 2.0) - multi_test (>= 0.0.2) - data_magic (0.17) + multi_test (>= 0.1.1) + data_magic (0.18) faker (>= 1.1.2) yml_reader (>= 0.2) diff-lcs (1.2.5) - faker (1.2.0) + faker (1.3.0) i18n (~> 0.5) ffi (1.9.3) gherkin (2.12.2) @@ -22,7 +22,7 @@ headless (1.0.1) i18n (0.6.9) json (1.8.1) - mediawiki_selenium (0.2.12) + mediawiki_selenium (0.2.20) cucumber (~> 1.3, >= 1.3.10) headless (~> 1.0, >= 1.0.1) json (~> 1.8, >= 1.8.1) @@ -31,28 +31,28 @@ rest-client (~> 1.6, >= 1.6.7) rspec-expectations (~> 2.14, >= 2.14.4) syntax (~> 1.2, >= 1.2.0) - mime-types (2.1) - multi_json (1.8.4) - multi_test (0.0.3) + mime-types (2.2) + multi_json (1.9.2) + multi_test (0.1.1) net-http-persistent (2.9.4) - page-object (0.9.6) + page-object (0.9.8) page_navigation (>= 0.9) - selenium-webdriver (>= 2.39.0) - watir-webdriver (>= 0.6.7) + selenium-webdriver (>= 2.40.0) + watir-webdriver (>= 0.6.8) page_navigation (0.9) data_magic (>= 0.14) rest-client (1.6.7) mime-types (>= 1.16) rspec-expectations (2.14.5) diff-lcs (>= 1.1.3, < 2.0) - rubyzip (1.1.0) - selenium-webdriver (2.40.0) + rubyzip (1.1.3) + selenium-webdriver (2.41.0) childprocess (>= 0.5.0) multi_json (~> 1.0) rubyzip (~> 1.0) websocket (~> 1.0.4) syntax (1.2.0) - watir-webdriver (0.6.8) + watir-webdriver (0.6.9) selenium-webdriver (>= 2.18.0) websocket (1.0.7) yml_reader (0.2) diff --git a/tests/browser/features/support/pages/flow_page.rb b/tests/browser/features/support/pages/flow_page.rb index efb7720..41a81a1 100644 --- a/tests/browser/features/support/pages/flow_page.rb +++ b/tests/browser/features/support/pages/flow_page.rb @@ -49,21 +49,13 @@ # a:contains("Actions")' ) but in page-object, there are no good solutions. # There's https://github.com/cheezy/page-object/wiki/Nested-Elements but it # makes little sense. - # XPath CSS class handling copied from - # http://stackoverflow.com/questions/8808921/selecting-a-css-class-with-xpath a(:post_actions_link, xpath: "//div[contains(concat(' ', normalize-space(@class), ' '), ' flow-post-container ')]//a[text()='Actions']", index: 1) - # Can't use css attribute with text_area, should be fixed in 2014-02 by https://github.com/watir/watir-webdriver/pull/244 - # NOT YET: text_area(:post_edit, css: "form.flow-edit-form .flow-edit-content") - # so instead awful xpath: - text_area(:post_edit, xpath: "//form[@class='flow-edit-form']//textarea") + text_area(:post_edit, css: "form.flow-edit-form .flow-edit-content") button(:preview_button, class: "mw-ui-button flow-preview-submit") div(:small_spinner, class: "mw-spinner mw-spinner-small mw-spinner-inline") list_item(:small_view, title: "Small view") a(:talk_link, text: "Talk") - # Can't use css attribute with text_field, should be fixed in 2014-02 by https://github.com/watir/watir-webdriver/pull/244 - # NOT YET: text_field(:title_edit, css: "form.flow-edit-title-form .flow-edit-content") - # so instead awful xpath: - text_field(:title_edit, xpath: "//form[@class='flow-edit-title-form']//input[@type='text']") + text_field(:title_edit, css: "form.flow-edit-title-form .flow-edit-content") a(:topic_actions_link, xpath: "//div[contains(concat(' ', normalize-space(@class), ' '), ' flow-topic-container ')]//a[text()='Actions']", index: actions_index) div(:topic_post, class: "flow-post-content", index: topic_index) div(:topic_title, class: "flow-topic-title", index: topic_index) -- To view, visit https://gerrit.wikimedia.org/r/127285 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ib8a12896bed6dc7d0349bc799a2b6b36c2a0bab8 Gerrit-PatchSet: 6 Gerrit-Project: mediawiki/extensions/Flow Gerrit-Branch: master Gerrit-Owner: Cmcmahon <[email protected]> Gerrit-Reviewer: Cmcmahon <[email protected]> Gerrit-Reviewer: Jdlrobson <[email protected]> Gerrit-Reviewer: Spage <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
