jenkins-bot has submitted this change and it was merged. Change subject: Add three more small test cases. ......................................................................
Add three more small test cases. 1. When you don't fully type a title and hit enter in the search box you search for it rather than go to that page. 2. When you type a namespace prefixed page into the search box it is found and hitting enter works like any other page. 3. Categories transcluded into pages from templates can be searched. Test case 3 is related to Bug 18861. Change-Id: I2426e1a3ec2fbbb156a38959d4cdc7da1af75974 --- M tests/browser/features/full_text.feature M tests/browser/features/prefix.feature M tests/browser/features/support/build_pages.rb 3 files changed, 10 insertions(+), 7 deletions(-) Approvals: Demon: 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 8776062..f9362c0 100644 --- a/tests/browser/features/full_text.feature +++ b/tests/browser/features/full_text.feature @@ -22,6 +22,7 @@ | incategory:alpha incategory:beta | AlphaBeta is | not in | | incategory:twowords catapult | Two Words is | in | | incategory:twowords intitle:catapult | none is | not in | + | incategory:templatetagged two words | Two Words is | in | | talk:catapult | Talk:Two Words is | not in | | talk:intitle:words | Talk:Two Words is | not in | | template:pickles | Template:Template Test is | not in | diff --git a/tests/browser/features/prefix.feature b/tests/browser/features/prefix.feature index ae0fbf7..d647b2f 100644 --- a/tests/browser/features/prefix.feature +++ b/tests/browser/features/prefix.feature @@ -9,10 +9,12 @@ When I hit enter in the search box Then I am on a page titled <title> Examples: - | term | first_result | title | - | catapult | Catapult | Catapult | - | two words | Two Words | Two Words | - | ~catapult | none | Search results | - | África | África | África | + | term | first_result | title | + | catapult | Catapult | Catapult | + | catapul | Catapult | Search results | + | two words | Two Words | Two Words | + | ~catapult | none | Search results | + | África | África | África | # Hitting enter in a search for Africa should pull up África but that bug is beyond me. - | Africa | África | Search results | + | Africa | África | Search results | + | Template:Template Test | Template:Template Test | Template:Template Test | diff --git a/tests/browser/features/support/build_pages.rb b/tests/browser/features/support/build_pages.rb index 7dab7ab..06a27da 100644 --- a/tests/browser/features/support/build_pages.rb +++ b/tests/browser/features/support/build_pages.rb @@ -3,7 +3,7 @@ Before('@setup_main') do if !$newsearch_setup_main steps %Q{ - And a page named Template:Template Test exists with contents pickles + And a page named Template:Template Test exists with contents pickles [[Category:TemplateTagged]] And a page named Catapult exists with contents ♙ asdf [[Category:Weaponry]] And a page named Amazing Catapult exists with contents test [[Category:Weaponry]] And a page named Two Words exists with contents catapult {{Template_Test}} [[Category:TwoWords]] -- To view, visit https://gerrit.wikimedia.org/r/78253 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I2426e1a3ec2fbbb156a38959d4cdc7da1af75974 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CirrusSearch Gerrit-Branch: master Gerrit-Owner: Manybubbles <never...@wikimedia.org> Gerrit-Reviewer: Cmcmahon <cmcma...@wikimedia.org> Gerrit-Reviewer: Demon <ch...@wikimedia.org> Gerrit-Reviewer: Zfilipin <zfili...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits