Files
babaevmm 201be941c9 fix json format
commit_hash:fd6e36a8ea96d96b9a00bac60a72f213c5f2dc0e
2025-02-07 18:43:40 +03:00

299 lines
7.1 KiB
JSON

{
"description": "TODO: https://nda.ya.ru/t/MMvpmt855oXgre",
"platforms": [
"android",
"ios",
"web"
],
"div_data": {
"templates": {
"div_base": {
"type": "gallery",
"orientation": "@{orientation}",
"column_count": "@{column_count_value}",
"item_spacing": "@{item_spacing}",
"alpha": "@{alpha}",
"alignment_horizontal": "@{alignment_horizontal}",
"alignment_vertical": "@{alignment_vertical}",
"background": [
{
"type": "solid",
"color": "@{background_color}"
}
],
"border": {
"corner_radius": "@{border_corner_radius}",
"stroke": {
"color": "@{border_stroke_color}",
"width": "@{border_stroke_width}"
}
},
"paddings": {
"left": "@{paddings}",
"top": "@{paddings}",
"right": "@{paddings}",
"bottom": "@{paddings}"
},
"margins": {
"left": "@{margins}",
"top": "@{margins}",
"right": "@{margins}",
"bottom": "@{margins}"
},
"width": {
"type": "fixed",
"value": "@{width_value}"
},
"height": {
"type": "match_parent"
}
},
"test_container": {
"type": "container",
"orientation": "overlap",
"border": {
"stroke": {
"color": "#000000"
}
}
},
"item": {
"type": "text",
"text": " ",
"font_size": 14,
"text_color": "#1ABC9C",
"paddings": {
"top": 4,
"bottom": 4,
"left": 8,
"right": 8
},
"margins": {
"left": 8,
"right": 8
},
"width": {
"type": "fixed",
"value": 120
},
"height": {
"type": "fixed",
"value": 120
},
"background": [
{
"type": "solid",
"color": "#34495E"
}
],
"border": {
"corner_radius": 6
}
}
},
"card": {
"log_id": "tests",
"variables": [
{
"name": "alpha",
"type": "number",
"value": 1.0
},
{
"name": "background_color",
"type": "color",
"value": "#FF0000"
},
{
"name": "border_corner_radius",
"type": "integer",
"value": 0
},
{
"name": "border_stroke_color",
"type": "color",
"value": "#FFFF00"
},
{
"name": "border_stroke_width",
"type": "number",
"value": 1
},
{
"name": "margins",
"type": "integer",
"value": 0
},
{
"name": "paddings",
"type": "integer",
"value": 0
},
{
"name": "height_value",
"type": "integer",
"value": 250
},
{
"name": "width_value",
"type": "integer",
"value": 360
},
{
"name": "alignment_horizontal",
"type": "string",
"value": "left"
},
{
"name": "alignment_vertical",
"type": "string",
"value": "top"
},
{
"name": "orientation",
"type": "string",
"value": "horizontal"
},
{
"name": "column_count_value",
"type": "integer",
"value": 1
},
{
"name": "item_spacing",
"type": "integer",
"value": 8
}
],
"states": [
{
"state_id": 1,
"div": {
"type": "test_container",
"height": {
"type": "fixed",
"value": 300
},
"items": [
{
"type": "div_base",
"items": [
{
"type": "item",
"item_log_id": "item/01",
"background": [
{
"color": "#f0ffff",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/02",
"background": [
{
"color": "#e0ffff",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/03",
"background": [
{
"color": "#c7fcec",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/04",
"background": [
{
"color": "#afeeee",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/05",
"background": [
{
"color": "#ace5ee",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/06",
"background": [
{
"color": "#add8e6",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/07",
"background": [
{
"color": "#9aceeb",
"type": "solid"
}
]
},
{
"type": "item",
"item_log_id": "item/08",
"background": [
{
"color": "#a6caf0",
"type": "solid"
}
]
}
]
}
]
}
}
]
}
},
"steps": [
{
"expected_screenshot": "step0.png"
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=orientation&value=vertical",
"log_id": "orientation"
}
]
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=item_spacing&value=24",
"log_id": "item_spacing"
}
]
},
{
"div_actions": [
{
"url": "div-action://set_variable?name=column_count_value&value=2",
"log_id": "column_count"
}
]
}
]
}