41b856c663cc309c7d4e60e088da40b195dacb7b
This commit is contained in:
tayrinn
2024-08-14 12:10:31 +03:00
parent 229d3b72d1
commit 0cd20e0057
3 changed files with 33 additions and 7 deletions
@@ -1,5 +1,5 @@
describe('regression', () => {
describe('Gallery items posing', () => {
xdescribe('Gallery items posing', () => {
beforeEach(async function() {
await this.browser.execute(() => {
window.divkitLogs = [];
@@ -41,6 +41,11 @@
},
"card": {
"log_id": "gallery-paging",
"variables": [{
"name": "text_position",
"type": "string",
"value": "start"
}],
"states": [
{
"state_id": 0,
@@ -85,21 +90,42 @@
{
"id": "block_1",
"type": "text_block",
"text": "Item 0"
"text": "Item 0",
"visibility_action": {
"log_id": "item0",
"log_limit": 0,
"url": "div-action://set_variable?name=text_position&value=start"
}
},
{
"id": "block_2",
"type": "text_block",
"text": "Item 1"
"text": "Item 1",
"visibility_action": {
"log_id": "item1",
"log_limit": 0,
"url": "div-action://set_variable?name=text_position&value=center"
}
},
{
"id": "block_3",
"type": "text_block",
"text": "Item 2"
"text": "Item 2",
"visibility_action": {
"log_id": "item2",
"log_limit": 0,
"url": "div-action://set_variable?name=text_position&value=center"
}
},
{
"type": "text_block",
"text": "Item 3"
"text": "Item 3",
"visibility_action": {
"log_id": "item3",
"log_limit": 0,
"url": "div-action://set_variable?name=text_position&value=center"
}
}
]
},
@@ -125,7 +151,7 @@
"bottom-left": 8
}
},
"alignment_horizontal": "start",
"alignment_horizontal": "@{text_position}",
"alignment_vertical": "center",
"type": "text_14_18_regular",
"paddings": {
+1 -1
View File
@@ -1902,7 +1902,7 @@
"Try to scroll again"
],
"expected_results": [
"Current item always stick to the text"
"Current item always stick to the text."
],
"file": "gallery/gallery-items-posing.json"
},