Files
divkit/test_data/integration_test_data/action_enabled_check_time.json
4eb0da 163b84dfe8 Json check
commit_hash:10a3c5dfdd683847ef54ab05c16ef2e1fc15f248
2026-05-11 13:09:17 +03:00

65 lines
1.4 KiB
JSON

{
"description": "Action is_enabled should be checked right before its execution.",
"div_data": {
"card": {
"log_id": "test_card",
"variables": [
{
"name": "target_action_executed",
"type": "boolean",
"value": false
},
{
"name": "is_enabled",
"type": "boolean",
"value": false
}
],
"variable_triggers": [
{
"condition": "@{!is_enabled}",
"actions": [
{
"log_id": "enable_further_actions",
"url": "div-action://set_variable?name=is_enabled&value=true"
},
{
"log_id": "target_action",
"url": "div-action://set_variable?name=target_action_executed&value=true",
"is_enabled": "@{is_enabled}"
}
]
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "text",
"text": "Target action executed: @{target_action_executed}"
}
}
]
}
},
"cases": [
{
"div_actions": [],
"expected": [
{
"type": "variable",
"variable_name": "target_action_executed",
"value": {
"type": "boolean",
"value": true
}
}
],
"platforms": [
"android",
"web"
]
}
]
}