jenkins-bot has submitted this change and it was merged.

Change subject: Moved tests from browsertests repository
......................................................................


Moved tests from browsertests repository

See also the commit[1] that deletes the tests from browsertests
repository and the commit[2] in mediawiki/selenium repository that
documents changes in Jenkins jobs.

The tests run just fine on my machine. Added CREDITS file 
following advice from Luis Villa[3].

1: https://gerrit.wikimedia.org/r/#/c/113115/
2: https://gerrit.wikimedia.org/r/#/c/113138/
3: https://bugzilla.wikimedia.org/show_bug.cgi?id=49313#c2

Bug: 61311
Change-Id: Id293a6bb06430bd49334c2964a4c2a28e175182a
---
A CREDITS
A tests/browser/features/simple_search.feature
A tests/browser/features/step_definitions/simple_search_steps.rb
3 files changed, 68 insertions(+), 0 deletions(-)

Approvals:
  Manybubbles: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/CREDITS b/CREDITS
new file mode 100644
index 0000000..57d386c
--- /dev/null
+++ b/CREDITS
@@ -0,0 +1,9 @@
+MediaWiki CirrusSearch is a collaborative project released under the
+GNU General Public License v2. We would like to recognize the
+following names for their contribution to the product.
+
+For further details on licensing, see the COPYING file.
+
+== Developers ==
+* Nik Everett
+* Chad Horohoe
diff --git a/tests/browser/features/simple_search.feature 
b/tests/browser/features/simple_search.feature
new file mode 100644
index 0000000..53fb5da
--- /dev/null
+++ b/tests/browser/features/simple_search.feature
@@ -0,0 +1,30 @@
+#
+# This file is subject to the license terms in the COPYING file found in the
+# CirrusSearch top-level directory and at
+# 
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FCirrusSearch/HEAD/COPYING.
 No part of
+# CirrusSearch, including this file, may be copied, modified, propagated, or
+# distributed except according to the terms contained in the COPYING file.
+#
+# Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
+# CirrusSearch top-level directory and at
+# 
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FCirrusSearch/HEAD/CREDITS
+#
+@clean @en.wikipedia.beta.wmflabs.org @test2.wikipedia.org
+Feature: Search
+
+  Scenario: Search suggestions
+    Given I am at a random page
+    When I search for: main
+    Then a list of suggested pages should appear
+      And Main Page should be the first result
+
+  Scenario: Fill in search term and click search
+    Given I am at a random page
+    When I search for: ma
+      And I click the search button
+    Then I should land on Search Results page
+
+  Scenario:  Search with accent yields result page with accent
+    Given I am at a random page
+    When I search for África
+    Then the page I arrive on has title África
diff --git a/tests/browser/features/step_definitions/simple_search_steps.rb 
b/tests/browser/features/step_definitions/simple_search_steps.rb
new file mode 100644
index 0000000..d0e055a
--- /dev/null
+++ b/tests/browser/features/step_definitions/simple_search_steps.rb
@@ -0,0 +1,29 @@
+#
+# This file is subject to the license terms in the COPYING file found in the
+# CirrusSearch top-level directory and at
+# 
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FCirrusSearch/HEAD/COPYING.
 No part of
+# CirrusSearch, including this file, may be copied, modified, propagated, or
+# distributed except according to the terms contained in the COPYING file.
+#
+# Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
+# CirrusSearch top-level directory and at
+# 
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FCirrusSearch/HEAD/CREDITS
+#
+When(/^I search for: (.+)$/) do |search_term|
+  on(SearchPage).search_input_element.when_present.send_keys(search_term)
+end
+
+Then(/^a list of suggested pages should appear$/) do
+  on(SearchPage).search_results_element.when_present.should exist
+end
+Then(/^I should land on Search Results page$/) do
+  on(SearchResultsPage).search_element.when_present
+  @browser.url.should match Regexp.escape("&title=Special%3ASearch")
+end
+Then(/^(.+) should be the first result$/) do |page_name|
+  on(SearchPage).one_result.should == page_name
+end
+
+Then(/^the page I arrive on has title (.+)$/) do |title|
+ @browser.title.should match Regexp.escape(title)
+end

-- 
To view, visit https://gerrit.wikimedia.org/r/113131
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id293a6bb06430bd49334c2964a4c2a28e175182a
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Zfilipin <zfili...@wikimedia.org>
Gerrit-Reviewer: Cmcmahon <cmcma...@wikimedia.org>
Gerrit-Reviewer: Jhall <jh...@wikimedia.org>
Gerrit-Reviewer: LuisVilla <lvi...@wikimedia.org>
Gerrit-Reviewer: Manybubbles <never...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to