50 lines
966 B
JSON
50 lines
966 B
JSON
{
|
|
"description": "Test `Special:Concepts`",
|
|
"setup": [
|
|
{
|
|
"namespace": "SMW_NS_CONCEPT",
|
|
"page": "SC0001/1",
|
|
"contents": "{{#concept: [[ConceptTest::+]] |Concept with no results}}"
|
|
},
|
|
{
|
|
"page": "SC0001/2",
|
|
"contents": "{{#ask: [[Concept:SC0001/Unknown]] }}"
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"type": "special",
|
|
"about": "#0",
|
|
"special-page": {
|
|
"page": "Concepts",
|
|
"query-parameters": "",
|
|
"request-parameters": []
|
|
},
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<a href=\".*Concept:SC0001/1\" title=\"Concept:SC0001/1\">Concept:SC0001/1</a>"
|
|
],
|
|
"not-contain": [
|
|
"Concept:SC0001/Unknown"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"wgContLang": "en",
|
|
"wgLanguageCode": "en",
|
|
"smwgPageSpecialProperties": [
|
|
"_MDAT"
|
|
],
|
|
"smwgNamespacesWithSemanticLinks": {
|
|
"NS_MAIN": true,
|
|
"SMW_NS_PROPERTY": true,
|
|
"SMW_NS_CONCEPT": true
|
|
}
|
|
},
|
|
"meta": {
|
|
"version": "2",
|
|
"is-incomplete": false,
|
|
"debug": false
|
|
}
|
|
} |