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'); + }); });