{ "description": "Test property page with parameters/sort", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has page test", "contents": "[[Has type::Page]]" }, { "page": "Example/P1005/A", "contents": "[[Has page test::Sort]] {{DEFAULTSORT:XXX}}" }, { "page": "Example/P1005/B", "contents": "[[Has page test::Sort]] {{DEFAULTSORT:AAA}}" } ], "tests": [ { "type": "parser", "about": "#0 (use a filter with correct sorting )", "namespace": "SMW_NS_PROPERTY", "subject": "Has page test", "assert-output": { "onPageView": { "parameters": { "filter": "Sort" } }, "to-contain": [ "
A
.*
Example/P1005/B", "
X
.*
Example/P1005/A" ] } } ], "settings": { "wgContLang": "en", "wgLang": "en", "smwgPageSpecialProperties": [ "_MDAT" ], "smwgNamespacesWithSemanticLinks": { "NS_MAIN": true, "SMW_NS_PROPERTY": true } }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }