BearND has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/271432

Change subject: Fix text extract test
......................................................................

Fix text extract test

The text extract value has changed. Trying to make it more stable by
not requiring the start of the extract to be exact.

Note: there is another test failure currently, but that one requires more than 
five minutes.
So I filed ticket T127243 for that other issue.

Change-Id: I4975798de7d4536510637558e1e06314a0d2057d
---
M test/features/mobile-summary/pagecontent.js
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps 
refs/changes/32/271432/1

diff --git a/test/features/mobile-summary/pagecontent.js 
b/test/features/mobile-summary/pagecontent.js
index 9d62d8a..9238fab 100644
--- a/test/features/mobile-summary/pagecontent.js
+++ b/test/features/mobile-summary/pagecontent.js
@@ -23,7 +23,8 @@
                 var body = res.body;
                 assert.deepEqual(res.status, 200);
                 assert.deepEqual(body.title, 'Cat');
-                assert.ok(body.extract.indexOf('The domestic cat is a') === 0, 
'Expected different start of extract');
+                assert.ok(body.extract.indexOf('cat') >= 0, 'Expected "cat" in 
extract');
+                assert.ok(body.extract.indexOf('domestic') >= 0, 'Expected 
"domestic" in extract');
                 assert.deepEqual(body.thumbnail, {
                     "source": 
"https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Cat_poster_1.jpg/320px-Cat_poster_1.jpg";
                 });

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4975798de7d4536510637558e1e06314a0d2057d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: BearND <bsitzm...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to