Files
grechka62 45c6242e22 Support shown text check in integration tests
commit_hash:75596e646f6ccb53e5cfbfa5c27e1d9355ce377b
2026-06-05 12:16:38 +03:00

78 lines
1.6 KiB
JSON

{
"description": "div-action://set_state switches one state to another and back",
"div_data": {
"card": {
"log_id": "sample_card",
"states": [
{
"state_id": 0,
"div": {
"type": "state",
"id": "sample",
"states": [
{
"state_id": "first",
"div": {
"type": "text",
"id": "text",
"text": "first state"
}
},
{
"state_id": "second",
"div": {
"type": "text",
"id": "text",
"text": "second state"
}
}
]
}
}
]
}
},
"cases": [
{
"div_actions": [
{
"url": "div-action://set_state?state_id=0/sample/second",
"log_id": "set_second_state"
}
],
"expected": [
{
"type": "view",
"id": "text",
"text": "second state"
}
],
"platforms": [
"android"
]
},
{
"div_actions": [
{
"url": "div-action://set_state?state_id=0/sample/second",
"log_id": "set_second_state"
},
{
"url": "div-action://set_state?state_id=0/sample/first",
"log_id": "return_first_state"
}
],
"expected": [
{
"type": "view",
"id": "text",
"text": "first state"
}
],
"platforms": [
"android"
]
}
]
}