From 0241d186ea7796abcefd720cef7a495e503db8a4 Mon Sep 17 00:00:00 2001 From: bsodfather Date: Sun, 12 Jul 2026 13:26:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D1=80=D0=BE=D0=B2=D0=BD=D1=8F?= =?UTF-8?q?=D1=82=D1=8C=20=D1=88=D0=BA=D0=B0=D0=BB=D1=83=20=D1=88=D0=B0?= =?UTF-8?q?=D0=B3=D0=BE=D0=B2=20=D0=BC=D0=B0=D1=81=D1=82=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ui/css/wizard.css | 6 +++--- apps/ui/tests/e2e/wizard.spec.js | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/apps/ui/css/wizard.css b/apps/ui/css/wizard.css index e7fd523..95c9623 100644 --- a/apps/ui/css/wizard.css +++ b/apps/ui/css/wizard.css @@ -1860,9 +1860,9 @@ } .steps-list::before { - left: calc(10% + 16px); - right: calc(10% + 16px); - top: 31px; + left: calc((100% - 32px) / 10); + right: calc((100% - 32px) / 10); + top: 27px; bottom: auto; width: auto; height: 1px; diff --git a/apps/ui/tests/e2e/wizard.spec.js b/apps/ui/tests/e2e/wizard.spec.js index 8ac561c..5e24e30 100644 --- a/apps/ui/tests/e2e/wizard.spec.js +++ b/apps/ui/tests/e2e/wizard.spec.js @@ -1,6 +1,29 @@ const { test, expect } = require('@playwright/test'); const { getCurrentWorkspace, login, localized } = require('./helpers'); +test('mobile wizard progress connector crosses the indicator centers', async ({ page }) => { + await page.setViewportSize({ width: 720, height: 900 }); + await login(page); + await page.goto('/wizard/'); + + const geometry = await page.locator('.steps-list').evaluate((list) => { + const indicators = [...list.querySelectorAll('.step-indicator')]; + const first = indicators[0].getBoundingClientRect(); + const last = indicators.at(-1).getBoundingClientRect(); + const listRect = list.getBoundingClientRect(); + const line = getComputedStyle(list, '::before'); + return { + leftDelta: Math.abs(listRect.left + Number.parseFloat(line.left) - (first.left + first.width / 2)), + rightDelta: Math.abs(listRect.right - Number.parseFloat(line.right) - (last.left + last.width / 2)), + topDelta: Math.abs(listRect.top + Number.parseFloat(line.top) - (first.top + first.height / 2)), + }; + }); + + expect(geometry.leftDelta).toBeLessThan(1); + expect(geometry.rightDelta).toBeLessThan(1); + expect(geometry.topDelta).toBeLessThan(1); +}); + test('wizard loads and protocol selection updates flow', async ({ page }) => { await login(page); await page.goto('/wizard/');