Files
divkit/test_data/integration_test_data/set_dict_variable.json
T
burstein 6be220be03 Supported integration tests on ios
commit_hash:654f07fe9c407a4ff11b700a736dcda77609f3a3
2025-05-14 12:16:36 +03:00

94 lines
1.8 KiB
JSON

{
"description": "Set dict variable from variable.",
"div_data": {
"card": {
"log_id": "dict_variable",
"variables": [
{
"name": "dict_var",
"type": "dict",
"value": {
"boolean": true,
"integer": 1,
"number": 1.0,
"string": "value"
}
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "text",
"text": "text"
}
}
]
}
},
"cases": [
{
"div_actions": [
{
"log_id": "check usual action",
"url": "div-action://set_variable?name=result&value=@{dict_var}"
}
],
"expected": [
{
"type": "variable",
"variable_name": "result",
"value": {
"type": "dict",
"value": {
"boolean": true,
"integer": 1,
"number": 1.0,
"string": "value"
}
}
}
],
"platforms": [
"android",
"web"
]
},
{
"div_actions": [
{
"log_id": "check typed action",
"typed": {
"type": "set_variable",
"variable_name": "result",
"value": {
"type": "dict",
"value": "@{dict_var}"
}
}
}
],
"expected": [
{
"type": "variable",
"variable_name": "result",
"value": {
"type": "dict",
"value": {
"boolean": true,
"integer": 1,
"number": 1.0,
"string": "value"
}
}
}
],
"platforms": [
"android",
"ios",
"web"
]
}
]
}