FRTVL-28: подсказка Телеграма без кода доступа после rebase на main
All checks were successful
All checks were successful
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7febd6461e
commit
d50befde3d
@ -230,7 +230,7 @@ async function loadSettings() {
|
||||
$("bot-unavailable").hidden = !tg.unavailable;
|
||||
$("telegram-detail").textContent = tg.detail;
|
||||
$("telegram-details").hidden = !tg.detail;
|
||||
$("telegram-code-hint").textContent = telegramCodeHint(tg.step);
|
||||
$("telegram-code-hint").textContent = telegramCodeHint();
|
||||
$("link-button").hidden = tg.step !== "unlinked";
|
||||
$("mock-confirm").hidden = tg.step !== "pending";
|
||||
$("unlink-button").hidden = tg.step !== "linked";
|
||||
|
||||
@ -298,10 +298,9 @@ export function runningMessage(startedAt) {
|
||||
* Подсказка блока Телеграма про код привязки. Что с ним делать, сказано один раз:
|
||||
* до нажатия — в telegramState.note, после — в #link-info рядом с кодом (FRTVL-28),
|
||||
* поэтому отдельной подсказки нет ни на одном шаге.
|
||||
* @param {"unlinked" | "pending" | "linked"} _step
|
||||
* @returns {string}
|
||||
*/
|
||||
export function telegramCodeHint(_step) {
|
||||
export function telegramCodeHint() {
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
@ -156,9 +156,7 @@ describe("Requirement: Вход владельца (FRTVL-47)", async () => {
|
||||
});
|
||||
|
||||
it("Scenario: Подсказка Телеграма по шагам — без повторов и кода доступа", () => {
|
||||
expect(telegramCodeHint("linked")).toBe("");
|
||||
expect(telegramCodeHint("pending")).toBe("");
|
||||
expect(telegramCodeHint("unlinked")).toBe("");
|
||||
expect(telegramCodeHint()).toBe("");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user