feat(auth): A1 — Yandex 360 SSO disabled + tooltip (Sprint 5A)
This commit is contained in:
@@ -104,7 +104,18 @@ async function handleSubmit() {
|
||||
<span class="text-caption text-medium-emphasis">или</span>
|
||||
</v-divider>
|
||||
|
||||
<v-btn block size="large" variant="outlined"> Войти через Yandex 360 </v-btn>
|
||||
<v-tooltip
|
||||
text="Вход через Yandex 360 станет доступен после регистрации юр. лица (Б-1)."
|
||||
location="top"
|
||||
>
|
||||
<template #activator="{ props }">
|
||||
<div v-bind="props" class="yandex-sso-wrap">
|
||||
<v-btn block size="large" variant="outlined" disabled>
|
||||
Войти через Yandex 360
|
||||
</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
</v-tooltip>
|
||||
</v-form>
|
||||
</v-card>
|
||||
</template>
|
||||
@@ -126,4 +137,8 @@ async function handleSubmit() {
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.yandex-sso-wrap {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user