jenkins-bot has submitted this change and it was merged.
Change subject: Tests for term containing * match unstemmed text
......................................................................
Tests for term containing * match unstemmed text
Bug: 56163
Change-Id: If5cde516a5ef8ee45bc3a5d4a924f8c78d6d21c5
---
M tests/browser/features/full_text.feature
1 file changed, 25 insertions(+), 4 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 e6d52c5..c83e368 100644
--- a/tests/browser/features/full_text.feature
+++ b/tests/browser/features/full_text.feature
@@ -12,13 +12,9 @@
| term | first_result
| two_words_is_in | image? |
| catapult | Catapult is in
| in | |
| pickles | Two Words is
| in | |
- # Catches Bug 54399
- | catapul* | Catapult is in
| in | |
| rdir | Two Words is
| not in | |
| intitle:catapult | Catapult is in
| not in | |
- | intitle:catapul* | Catapult is in
| not in | |
| intitle:catapult amazing | Amazing Catapult is
| not in | |
- | intitle:catapul* amaz* | Amazing Catapult is
| not in | |
| incategory:weaponry | Catapult is in
| not in | |
| incategory:weaponry amazing | Amazing Catapult is
| not in | |
| incategory:weaponry intitle:catapult | Catapult is in
| not in | |
@@ -426,3 +422,28 @@
Scenario: searching for NOT something will not crash (technically it should
bring up the most linked document, but this isn't worth checking)
When I search for NOT catapult
Then there is a search result
+
+ @wildcards @setup_main
+ Scenario: searching with a single wildcard finds expected results
+ When I search for catapul*
+ Then Catapult is the first search result
+
+ @wildcards @setup_main
+ Scenario: searching for intitle: with a wildcard find expected results
+ When I search for intitle:catapul*
+ Then Catapult is the first search result
+
+ @wildcards @setup_main
+ Scenario: searching for intitle: with a wildcard and a regular wildcard find
expected results
+ When I search for intitle:catapul* amaz*
+ Then Amazing Catapult is the first search result
+
+ @wildcards @setup_main
+ Scenario: wildcards match plain matches
+ When I search for pi*les
+ Then Two Words is the first search result
+
+ @wildcards @setup_main
+ Scenario: wildcards don't match stemmed matches
+ When I search for pi*le
+ Then there are no search results
--
To view, visit https://gerrit.wikimedia.org/r/94374
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If5cde516a5ef8ee45bc3a5d4a924f8c78d6d21c5
Gerrit-PatchSet: 1
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: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits