jenkins-bot has submitted this change and it was merged. Change subject: Add test for lead paragraph move ......................................................................
Add test for lead paragraph move Test page is https://en.wikipedia.org/wiki/User:BSitzmann_(WMF)/MCS/Test/Lead_paragraph_move In this case I prefer to use enwiki over testwiki since I want the infobox to look right. Change-Id: Ie4a9933a5f77695baac7f9856690ffab7d2281ea --- M test/features/mobile-sections-lead/pagecontent.js 1 file changed, 9 insertions(+), 1 deletion(-) Approvals: Mholloway: Looks good to me, approved jenkins-bot: Verified diff --git a/test/features/mobile-sections-lead/pagecontent.js b/test/features/mobile-sections-lead/pagecontent.js index b2a8d27..5c8b65a 100644 --- a/test/features/mobile-sections-lead/pagecontent.js +++ b/test/features/mobile-sections-lead/pagecontent.js @@ -8,7 +8,7 @@ var server = require('../../utils/server.js'); var headers = require('../../utils/headers.js'); -describe('mobile-sections-lead', function() { +describe.only('mobile-sections-lead', function() { this.timeout(20000); before(function () { return server.start(); }); @@ -110,4 +110,12 @@ assert.deepEqual(lead.pronunciation.url, '//upload.wikimedia.org/wikipedia/commons/c/c2/Pronunciation_of_the_Odia_language_word_%22Odisha%22.ogg'); }); }); + it('Enwiki Lead_paragraph_move has the infobox moved after the lead paragraph', function() { + return preq.get({ uri: server.config.uri + 'en.wikipedia.org/v1/page/mobile-sections-lead/User:BSitzmann_%28WMF%29%2FMCS%2FTest%2FLead_paragraph_move' }) + .then(function (res) { + assert.deepEqual(res.status, 200); + assert.ok(res.body.sections[0].text.startsWith('<span><p>Lead paragraph should appear first'), + 'Expected section text to start with lead paragraph. Actual text ' + res.body.sections[0].text); + }); + }); }); -- To view, visit https://gerrit.wikimedia.org/r/278414 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ie4a9933a5f77695baac7f9856690ffab7d2281ea Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/services/mobileapps Gerrit-Branch: master Gerrit-Owner: BearND <[email protected]> Gerrit-Reviewer: BearND <[email protected]> Gerrit-Reviewer: Dbrant <[email protected]> Gerrit-Reviewer: Fjalapeno <[email protected]> Gerrit-Reviewer: GWicke <[email protected]> Gerrit-Reviewer: Mholloway <[email protected]> Gerrit-Reviewer: Mhurd <[email protected]> Gerrit-Reviewer: Mobrovac <[email protected]> Gerrit-Reviewer: Niedzielski <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
