Zfilipin has uploaded a new change for review. https://gerrit.wikimedia.org/r/88992
Change subject: Flow tests are moved to Flow repository ...................................................................... Flow tests are moved to Flow repository In commit https://gerrit.wikimedia.org/r/#/c/88925 Bug: 53582 Change-Id: I9d9da185187180c116a4bc40eb2d38c1ae7ef14a --- D features/flow_anon.feature D features/flow_logged_in.feature D features/flow_logged_in_visualeditor.feature D features/step_definitions/flow_steps.rb D features/support/pages/flow_page.rb 5 files changed, 0 insertions(+), 131 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/qa/browsertests refs/changes/92/88992/1 diff --git a/features/flow_anon.feature b/features/flow_anon.feature deleted file mode 100644 index d35e4e7..0000000 --- a/features/flow_anon.feature +++ /dev/null @@ -1,11 +0,0 @@ [email protected] @ee-prototype.wmflabs.org - -Feature: Create new topic anonymous - - Scenario: Add new Flow topic - Given I am on Flow page - When I create a Title of Flow Topic in Flow new topic - And I create a Body of Flow Topic into Flow body - And I click New topic save - Then the Flow page should contain Title of Flow Topic - And the Flow page should contain Body of Flow Topic diff --git a/features/flow_logged_in.feature b/features/flow_logged_in.feature deleted file mode 100644 index 1c0f240..0000000 --- a/features/flow_logged_in.feature +++ /dev/null @@ -1,17 +0,0 @@ [email protected] @login - -Feature: Create new topic logged in - -For now this test is assumed to run against http://ee-prototype.wmflabs.org/ only -It requires VisualEditor not be in place, the cldr extension, a "Flow QA" page, and the "Selenium user". -If VisualEditor is enabled for Selenium_user, the flow_page definitions have to change. - -Background: - Given I am logged in - - Scenario: Add new Flow topic - Given I have created a Flow topic - And the author link is visible - And the talk and contrib links are not visible - When I hover over the author link - Then links to talk and contrib should be visible diff --git a/features/flow_logged_in_visualeditor.feature b/features/flow_logged_in_visualeditor.feature deleted file mode 100644 index 67fbe0e..0000000 --- a/features/flow_logged_in_visualeditor.feature +++ /dev/null @@ -1,16 +0,0 @@ [email protected] @login - -Feature: Create new topic logged in - -For now this test is assumed to run against http://en.wikipedia.beta.wmflabs.org/ only -It requires VisualEditor, the cldr extension, a "Flow QA" page, and the "Selenium user". - -Background: - Given I am logged in - - Scenario: Add new Flow topic - Given I have created a VisualEditor Flow topic - And the author link is visible - And the talk and contrib links are not visible - When I hover over the author link - Then links to talk and contrib should be visible diff --git a/features/step_definitions/flow_steps.rb b/features/step_definitions/flow_steps.rb deleted file mode 100644 index 8f0af3f..0000000 --- a/features/step_definitions/flow_steps.rb +++ /dev/null @@ -1,70 +0,0 @@ -Given(/^I am on Flow page$/) do - visit FlowPage -end - -When(/^I create a (.+) in Flow new topic$/) do |flow_title| - @automated_test_marker = ' browsertest edit' - on(FlowPage) do |page| - page.new_topic_title_element.when_present.click - page.new_topic_title_element.when_present.send_keys(flow_title + @random_string + @automated_test_marker) - end -end - -When(/^I create a (.+) into VisualEditor Flow body$/) do |flow_body| - on(FlowPage).new_topic_body_ve_element.when_present.send_keys(flow_body + @random_string + @automated_test_marker) -end - -When(/^I create a (.+) into Flow body$/) do |flow_body| - on(FlowPage).new_topic_body_element.when_present.send_keys(flow_body + @random_string + @automated_test_marker) -end - -When(/^I click New topic save$/) do - on(FlowPage).new_topic_save_element.when_present.click -end - -Then(/^the Flow page should contain (.+)$/) do |flow_topic| - on(FlowPage) do |page| - page.wait_until(20) do # 10 seconds wasn't enough on ee-flow... - page.text.include? 'just now' - end - page.flow_body.should match(flow_topic + @random_string + @automated_test_marker) - end -end - -Given(/^I have created a Flow topic$/) do - step 'I am on Flow page' - step 'I create a Title of Flow Topic in Flow new topic' - step 'I create a Body of Flow Topic into Flow body' - step 'I click New topic save' - step 'the page should contain Title of Flow Topic' -end - -Given(/^I have created a VisualEditor Flow topic$/) do - step 'I am on Flow page' - step 'I create a Title of Flow Topic in Flow new topic' - step 'I create a Body of Flow Topic into VisualEditor Flow body' - step 'I click New topic save' - step 'the page should contain Title of Flow Topic' -end - -Given(/^the author link is visible$/) do - on(FlowPage).author_link_element.when_present.should be_visible -end - -Given(/^the talk and contrib links are not visible$/) do - on(FlowPage) do |page| - page.talk_link_element.should_not be_visible - page.contrib_link_element.should_not be_visible - end -end - -When(/^I hover over the author link$/) do - on(FlowPage).author_link_element.fire_event('onmouseover') -end - -Then(/^links to talk and contrib should be visible$/) do - on(FlowPage) do |page| - page.talk_link_element.should be_visible - page.contrib_link_element.should be_visible - end -end diff --git a/features/support/pages/flow_page.rb b/features/support/pages/flow_page.rb deleted file mode 100644 index 3410a84..0000000 --- a/features/support/pages/flow_page.rb +++ /dev/null @@ -1,17 +0,0 @@ -require 'page-object' - -class FlowPage - include PageObject - - include URL - page_url URL.url('Special:Flow/Flow_QA') - - span(:author_link, class: 'flow-creator-simple') - a(:talk_link, text: 'Talk') - a(:contrib_link, text: 'contribs') - text_area(:new_topic_title, name: 'topic_list[topic]') - textarea(:new_topic_body, class: 'flow-newtopic-content') - div(:new_topic_body_ve, class: 've-ce-documentNode ve-ce-branchNode') - button(:new_topic_save, class: 'flow-newtopic-submit') - div(:flow_body, class: 'flow-container') -end -- To view, visit https://gerrit.wikimedia.org/r/88992 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9d9da185187180c116a4bc40eb2d38c1ae7ef14a Gerrit-PatchSet: 1 Gerrit-Project: qa/browsertests Gerrit-Branch: master Gerrit-Owner: Zfilipin <[email protected]> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
