Sumanah has uploaded a new change for review.
https://gerrit.wikimedia.org/r/57825
Change subject: Starting the search scenario for including caption in search
......................................................................
Starting the search scenario for including caption in search
Change-Id: I8d0fa24899d05a2ca34c59c6c7e61dba160da6a5
---
M features/search.feature
M features/step_definitions/search_steps.rb
2 files changed, 16 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/qa/browsertests
refs/changes/25/57825/1
diff --git a/features/search.feature b/features/search.feature
index 6514b85..a9f092b 100644
--- a/features/search.feature
+++ b/features/search.feature
@@ -25,8 +25,7 @@
And the results page should show Africa as a red link
Scenario: Find tokens in the captions of uploaded files
- Given I am on http://commons.wikimedia.beta.wmflabs.org/
- And http://commons.wikimedia.beta.wmflabs.org/wiki/File:Presentation.pdf
exists
- And http://commons.wikimedia.beta.wmflabs.org/wiki/File:Presentation.pdf
has the caption "This is a presentation about snails that User:GreenSpark gave
on 6 December 2010 in Athens."
- When I search for: snails
- Then Presentation.pdf should be a result
+ Given http://commons.wikimedia.beta.wmflabs.org/wiki/File:Lorem_Ipsum.pdf
exists
+ And http://commons.wikimedia.beta.wmflabs.org/wiki/File:Lorem_Ipsum.pdf
has the caption "This is a presentation about snails that User:GreenSpark gave
on 6 December 2010 in Athens."
+ When I search for: Lorem
+ Then Lorem Ipsum.pdf should be a result
diff --git a/features/step_definitions/search_steps.rb
b/features/step_definitions/search_steps.rb
index d0f393b..bc3bb88 100644
--- a/features/step_definitions/search_steps.rb
+++ b/features/step_definitions/search_steps.rb
@@ -31,3 +31,15 @@
Then(/^the page I arrive on has title "(.*?)"$/) do |title|
on(PtWikivoyageMainPage).has_expected_title?
end
+
+Given(/^http:\/\/commons\.wikimedia\.beta\.wmflabs\.org\/wiki\/File:Lorem_Ipsum\.pdf
exists$/) do
+ pending # express the regexp above with the code you wish you had
+end
+
+Given(/^http:\/\/commons\.wikimedia\.beta\.wmflabs\.org\/wiki\/File:Lorem_Ipsum\.pdf
has the caption "(.*?)"$/) do |arg1|
+ pending # express the regexp above with the code you wish you had
+end
+
+Then(/^Lorem Ipsum.pdf should be a result$/) do
+ pending # express the regexp above with the code you wish you had
+end
--
To view, visit https://gerrit.wikimedia.org/r/57825
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8d0fa24899d05a2ca34c59c6c7e61dba160da6a5
Gerrit-PatchSet: 1
Gerrit-Project: qa/browsertests
Gerrit-Branch: master
Gerrit-Owner: Sumanah <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits