Mholloway has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/395840 )

Change subject: Fix broken tests
......................................................................

Fix broken tests

These tests should point at the real page and not the redirect page since
we're not testing redirect handling.  This fixes the build; let's figure
out why they were failing later.

Change-Id: If7017392c2869d6115d3cab4adea568bc791050d
---
M test/features/mobile-sections-lead/pagecontent.js
M test/features/mobile-sections/pagecontent-v2.js
2 files changed, 2 insertions(+), 2 deletions(-)


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

diff --git a/test/features/mobile-sections-lead/pagecontent.js 
b/test/features/mobile-sections-lead/pagecontent.js
index 7f093b1..a5ec47a 100644
--- a/test/features/mobile-sections-lead/pagecontent.js
+++ b/test/features/mobile-sections-lead/pagecontent.js
@@ -212,7 +212,7 @@
             });
     });
     it('Enwiki hatnotes are promoted to the lead object', () => {
-        const title = `Chivalric%20order`;
+        const title = `Order%20of%20chivalry`;
         const uri = 
`${server.config.uri}${wikiSectionsLead}${title}/699553745`;
         const anchor = `<a href="/wiki/Military_order_(society)" 
title="Military order (society)">`;
         return preq.get({ uri })
diff --git a/test/features/mobile-sections/pagecontent-v2.js 
b/test/features/mobile-sections/pagecontent-v2.js
index 439a24d..d8a0ae5 100644
--- a/test/features/mobile-sections/pagecontent-v2.js
+++ b/test/features/mobile-sections/pagecontent-v2.js
@@ -33,7 +33,7 @@
     // special
 
     it('Hatnotes do not appear in the lead object', () => {
-        const title = 'Chivalric%20order/699553745';
+        const title = 'Order%20of%20chivalry/699553745';
         const uri = 
`${server.config.uri}en.wikipedia.org/v1/page/formatted/${title}`;
         const anchor = '<a href="/wiki/Military_order_(society)" 
title="Military order (society)">';
         return preq.get({ uri })

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If7017392c2869d6115d3cab4adea568bc791050d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <mhollo...@wikimedia.org>

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

Reply via email to