From 7efab319e747d431d0b76fa58bbfa6a9eb47d34b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Sat, 16 May 2026 21:43:15 +0300 Subject: [PATCH] =?UTF-8?q?feat(auth):=20A1=20=E2=80=94=20Yandex=20360=20S?= =?UTF-8?q?SO=20disabled=20+=20tooltip=20(Sprint=205A)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/resources/js/views/auth/LoginView.vue | 17 ++++++++++++++++- app/tests/Frontend/LoginView.spec.ts | 7 +++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/app/resources/js/views/auth/LoginView.vue b/app/resources/js/views/auth/LoginView.vue index 758c2dcc..d49fe5ab 100644 --- a/app/resources/js/views/auth/LoginView.vue +++ b/app/resources/js/views/auth/LoginView.vue @@ -104,7 +104,18 @@ async function handleSubmit() { или - Войти через Yandex 360 + + + @@ -126,4 +137,8 @@ async function handleSubmit() { flex-direction: column; gap: 4px; } + +.yandex-sso-wrap { + width: 100%; +} diff --git a/app/tests/Frontend/LoginView.spec.ts b/app/tests/Frontend/LoginView.spec.ts index c95cbdb5..50f1f462 100644 --- a/app/tests/Frontend/LoginView.spec.ts +++ b/app/tests/Frontend/LoginView.spec.ts @@ -80,4 +80,11 @@ describe('LoginView.vue', () => { expect(alert.text()).toContain('10 мин'); expect(alert.text()).toContain('Слишком много попыток'); }); + + it('A1: SSO Yandex 360 — кнопка disabled до подключения Б-1', async () => { + const wrapper = await mountLoginView(); + const ssoBtn = wrapper.findAll('button').find((b) => b.text().includes('Yandex 360')); + expect(ssoBtn).toBeDefined(); + expect(ssoBtn!.classes()).toContain('v-btn--disabled'); + }); });