{ "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" ] } ] }