jenkins-bot has submitted this change and it was merged.
Change subject: Tests for switching to ANDing query terms together
......................................................................
Tests for switching to ANDing query terms together
Added some more tests and changed the expected results for the tests that
use empty prefixes - we now expect no results which should be ok.
Bug: 52904
Change-Id: I7e38d0fcaf94268b1a78766b0682563e96125b67
---
M tests/browser/features/full_text.feature
1 file changed, 13 insertions(+), 2 deletions(-)
Approvals:
Chad: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/browser/features/full_text.feature
b/tests/browser/features/full_text.feature
index 2645613..20a015c 100644
--- a/tests/browser/features/full_text.feature
+++ b/tests/browser/features/full_text.feature
@@ -43,8 +43,9 @@
| "3.1 Conquest of Persian empire" | none is
| not in | |
# You can't search for the [edit] tokens that users can click to edit
sections
| "Succession of Umar edit" | none is
| not in | |
- | intitle:"" catapult | Catapult is
| in | |
- | incategory:"" catapult | Catapult is
| in | |
+ # Empty intitle and incategory are treated as a query term. Since terms
are anded together you won't find anything.
+ | intitle:"" catapult | none is
| not in | |
+ | incategory:"" catapult | nono is
| not in | |
@setup_main
Scenario Outline: Searching for empty-string like values
@@ -102,3 +103,13 @@
Scenario: Searching for multiword category finds it
When I search for incategory:"CategoryWith ASpace"
Then IHaveATwoWordCategory is the first search result
+
+ @setup_main
+ Scenario: Searching for a page using its title and another word not in the
page's text doesn't find the page
+ When I search for DontExistWord Two Words
+ Then there are no search results
+
+ @setup_main
+ Scenario: Searching for a page using its title and another word in the
page's text does find it
+ When I search for catapult Two Words
+ Then Two Words is the first search result
--
To view, visit https://gerrit.wikimedia.org/r/82827
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7e38d0fcaf94268b1a78766b0682563e96125b67
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Cmcmahon <[email protected]>
Gerrit-Reviewer: Zfilipin <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits