43 lines
1007 B
JSON
43 lines
1007 B
JSON
{
|
|
"description": "Test output of `Special:WantedProperties` on unapproved property (`wgContLang=en`, `wgLang=en`, `smwgCreateProtectionRight`)",
|
|
"setup": [
|
|
{
|
|
"page": "Example/SW0002/1",
|
|
"contents": "[[SomeWantedProperty::123]]"
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"type": "special",
|
|
"about": "#0 restricted property causes unapproved listing",
|
|
"skip-on": {
|
|
"mediawiki": [ ">1.42.x", "Skipping, broken due to wiki page creation failure in test setup" ]
|
|
},
|
|
"special-page": {
|
|
"page": "WantedProperties",
|
|
"query-parameters": [],
|
|
"request-parameters": {
|
|
"filter": "unapprove"
|
|
}
|
|
},
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<li><a .*SomeWantedProperty&action=view\" .*SomeWantedProperty</a> (1 use)</li>"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"wgContLang": "en",
|
|
"wgLang": "en",
|
|
"smwgCreateProtectionRight": "foo"
|
|
},
|
|
"meta": {
|
|
"skip-on": {
|
|
"sqlite": "Returns a `database is locked`"
|
|
},
|
|
"version": "2",
|
|
"is-incomplete": false,
|
|
"debug": false
|
|
}
|
|
} |