Module:TrainingPages/testcases: Difference between revisions

Content deleted Content added
changing to local stable index for testcases - may break a test
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 3:
function p:test_trainingpages()
self:preprocess_equals_many('{{#invoke:TrainingPages|next_page|', '}}', {
{ 'index=Module talkWikipedia:TrainingPagesTraining/testcasesFor students/indexIndex for TrainingPages testcases|page=Wikipedia:Training/For students/valuable contribution', 'Wikipedia:Training/For students/Editing topics' },
{ 'index=Module talkWikipedia:TrainingPagesTraining/testcasesFor students/indexIndex for TrainingPages testcases|page=Wikipedia:Training/For students/Editing topics', 'Wikipedia:Training/For students/Getting started 1' },
{ 'index=Module talkWikipedia:TrainingPagesTraining/testcasesFor students/indexIndex for TrainingPages testcases|page=Wikipedia:Training/For students/Citing sources', 'Wikipedia:Training/For students/Citing sources 2' },
{ 'index=Wikipedia:Training/For students/Index for TrainingPages testcases|page=Project:Training/For students/Citing sources', 'Wikipedia:Training/For students/Citing sources 2' },
{ 'index=Wikipedia:Training/For students/Index for TrainingPages testcases|anonymize=yes|page=Wikipedia:Training/For students/Citing sources', 'Project:Training/For students/Citing sources 2' }
})
self:preprocess_equals_many('{{#invoke:TrainingPages|last_page|', '}}', {
{ 'index=Module talkWikipedia:TrainingPagesTraining/testcasesFor students/indexIndex for TrainingPages testcases|page=Wikipedia:Training/For students/valuable contribution|defaultpage=Wikipedia:Training/header', 'Wikipedia:Training/header' },
{ 'index=Module talkWikipedia:TrainingPagesTraining/testcasesFor students/indexIndex for TrainingPages testcases|page=Wikipedia:Training/For students/Citing sources|defaultpage=Wikipedia:Training/header', 'Wikipedia:Training/For students/Text editing' },
{ 'Module talkWikipedia:TrainingPagesTraining/testcasesFor students/indexIndex for TrainingPages testcases|page=Wikipedia:Training/For students/Where to get help|defaultpage=Wikipedia:Training/header', 'Wikipedia[[Module:Training/ForTrainingPages]] students/Discussionerror:no index parameter specified' }
})
self:preprocess_equals_many('{{#invoke:TrainingPages|main|', '}}', {
{ 'index=Module talkWikipedia:TrainingPagesTraining/testcasesFor students/indexIndex for TrainingPages testcases|displacement=5|page=Wikipedia:Training/For students/Citing sources|defaultpage=', 'Wikipedia:Training/For students/Sandbox edits for new articles' },
{ '#invoke:TrainingPages|main|index=Module talkWikipedia:TrainingPagesTraining/testcasesFor students/indexIndex for TrainingPages testcases|displacement=5|page=Wikipedia:Training/For students/Where to get help|defaultpage=', '' },
})
self:preprocess_equals_many('{{#invoke:TrainingPages|page_number|', '}}', {
Line 21 ⟶ 23:
})
self:preprocess_equals_many('{{#invoke:TrainingPages|main|', '}}', {
{ 'index=Module talkWikipedia:TrainingPagesTraining/testcasesFor students/indexIndex for TrainingPages testcases|page=1', 'Wikipedia:Training/For students/valuable contribution' }
})
self:preprocess_equals_many('{{#invoke:TrainingPages|total_pages|', '}}', {
{ 'index=Module talkWikipedia:TrainingPagesTraining/testcasesFor students/indexIndex for TrainingPages testcases ', '1521' }
})
end