BearND has uploaded a new change for review. https://gerrit.wikimedia.org/r/278414
Change subject: WIP: add test for lead paragraph move ...................................................................... WIP: 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. Note that the lead paragraph in my made up page doesn't get moved. Change-Id: Ie4a9933a5f77695baac7f9856690ffab7d2281ea --- M test/features/mobile-sections-lead/pagecontent.js 1 file changed, 10 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps refs/changes/14/278414/1 diff --git a/test/features/mobile-sections-lead/pagecontent.js b/test/features/mobile-sections-lead/pagecontent.js index b2a8d27..f4060a7 100644 --- a/test/features/mobile-sections-lead/pagecontent.js +++ b/test/features/mobile-sections-lead/pagecontent.js @@ -110,4 +110,14 @@ 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) { + var lead = res.body; + assert.deepEqual(res.status, 200); + console.log(res.body.sections[0].text); + assert.ok(res.body.sections[0].text.startsWith('<p>Lead paragraph should be first.</p>'), + 'Expected section text to start with lead paragraph in: ' + 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: newchange Gerrit-Change-Id: Ie4a9933a5f77695baac7f9856690ffab7d2281ea Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/mobileapps Gerrit-Branch: master Gerrit-Owner: BearND <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
