Skip to content

Commit

Permalink
add JSONScript test (forminput-openlayers)
Browse files Browse the repository at this point in the history
  • Loading branch information
gesinn-it-ilm committed Jan 10, 2025
1 parent 2f935c6 commit 8c7bcb3
Showing 1 changed file with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"description": "form input openlayers",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Text Property",
"contents": "[[Has type::Text]]"
},
{
"namespace": "PF_NS_FORM",
"page": "Openlayers without other parameters",
"contents": "{{{field|Openlayers|input type=openlayers}}}"
}
],
"tests": [
{
"type": "special",
"about": "Openlayers without other parameters",
"special-page": {
"page": "FormEdit",
"query-parameters": "Openlayers without other parameters/01",
"request-parameters": {}
},
"assert-output": {
"to-contain": [
"<div class=\"pfOpenLayersInput\">",
"<div class='pfAddressInput oo-ui-widget oo-ui-widget-enabled oo-ui-inputWidget oo-ui-textInputWidget oo-ui-textInputWidget-type-text oo-ui-textInputWidget-php'>",
"placeholder='Enter address here'",
"pfLookUpAddress",
"<span class='oo-ui-labelElement-label'>Calculate coordinates using address</span>",
"<input tabindex=\"3\" class=\"pfCoordsInput\" name=\"standard input[Openlayers]\" size=\"40\"/>"
]
}
}
],
"settings": {
"wgLang": "en"
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}

0 comments on commit 8c7bcb3

Please sign in to comment.