jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/341950 )

Change subject: Fix few browser tests
......................................................................


Fix few browser tests

Cindy was running into problems where this waffle squash result was in
the reverse order expected. This test is to make sure that two words
are not squashed together but seems to rely on the phrase rescore.
Remove some wikitext so that the text is no longer in auxiliary_text
and can match phrase rescore.
Concerning filefeature they are sometimes failing because a file
created by another test can be present from time to time.

Change-Id: I1f6c30b40254f8af4f0b871de8aa5f0091e0b185
---
M tests/browser/articles/wafflesquash.txt
M tests/browser/features/filesearch_api.feature
2 files changed, 5 insertions(+), 8 deletions(-)

Approvals:
  Cindy-the-browser-test-bot: Looks good to me, but someone else must approve
  jenkins-bot: Verified
  DCausse: Looks good to me, approved



diff --git a/tests/browser/articles/wafflesquash.txt 
b/tests/browser/articles/wafflesquash.txt
index f966037..0418f33 100644
--- a/tests/browser/articles/wafflesquash.txt
+++ b/tests/browser/articles/wafflesquash.txt
@@ -1,4 +1 @@
-{|
-|-
-| Waffle<br>squash
-|}
+Waffle<br>squash
diff --git a/tests/browser/features/filesearch_api.feature 
b/tests/browser/features/filesearch_api.feature
index 6f28e82..09d7b3b 100644
--- a/tests/browser/features/filesearch_api.feature
+++ b/tests/browser/features/filesearch_api.feature
@@ -2,7 +2,7 @@
 Feature: Searches with the file size filters
 
   Scenario Outline: filesize finds files with given size
-    When I api search in namespace 6 for <search>
+    When I api search in namespace 6 for <search> -intitle:frozen
     Then there are <count> api search results
     And <musthave> is in the api search results
     And <mustnot> is not in the api search results
@@ -14,7 +14,7 @@
     | filesize:5,20 | 1     | File:Savepage-greyed.png                         
 | File:Linux Distribution Timeline text version.pdf |
 
   Scenario Outline: filetype finds files with given internal type
-    When I api search in namespace 6 for <search>
+    When I api search in namespace 6 for <search> -intitle:frozen
     Then there are <count> api search results
     And <musthave> is in the api search results
     And <mustnot> is not in the api search results
@@ -25,7 +25,7 @@
       | filetype:Drawing | 4     | File:DuplicatedLocally.svg                  
      | File:Savepage-greyed.png |
 
   Scenario Outline: filemime finds files with given MIME type
-    When I api search in namespace 6 for <search>
+    When I api search in namespace 6 for <search> -intitle:frozen
     Then there are <count> api search results
     And <musthave> is in the api search results
     And <mustnot> is not in the api search results
@@ -36,7 +36,7 @@
       | filemime:application/pdf | 1   | File:Linux Distribution Timeline text 
version.pdf | File:OnCommons.svg         |
 
   Scenario Outline: Resolution filters find files with given dimensions
-    When I api search in namespace 6 for <search>
+    When I api search in namespace 6 for <search> -intitle:frozen
     Then there are <count> api search results
     And <musthave> is in the api search results
     And <mustnot> is not in the api search results

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1f6c30b40254f8af4f0b871de8aa5f0091e0b185
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: es5
Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org>
Gerrit-Reviewer: Cindy-the-browser-test-bot <bernhardsone...@gmail.com>
Gerrit-Reviewer: DCausse <dcau...@wikimedia.org>
Gerrit-Reviewer: Gehel <guillaume.leder...@wikimedia.org>
Gerrit-Reviewer: Smalyshev <smalys...@wikimedia.org>
Gerrit-Reviewer: Tjones <tjo...@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