PEP-149: rebased on PEP-151 — the refreshed Telegram message has no «continue» button
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
2dd13261bc
commit
165b486547
@ -96,10 +96,10 @@ describe("Одно состояние — одно сообщение", () => {
|
||||
assert.equal(inThread.length, 1);
|
||||
assert.equal(inThread[0]!.repeats, 8);
|
||||
assert.ok(inThread[0]!.updatedAt);
|
||||
// Telegram: still one message, with the last text and the «Продолжай» button back.
|
||||
// Telegram: still one message, with the last text; PEP-149: no «Продолжай» button any more.
|
||||
const msg = await waitFor("the Telegram message refreshed", async () => {
|
||||
const [m] = tgAbout(t.project.key);
|
||||
return m && m.text.includes("Продвинуть проверки из этой сессии нельзя") && m.reply_markup?.inline_keyboard.flat().some((b) => /Продолжай/.test(b.text)) ? m : null;
|
||||
return m && m.text.includes("Продвинуть проверки из этой сессии нельзя") && !m.reply_markup?.inline_keyboard.flat().some((b) => /Продолжай/.test(b.text)) ? m : null;
|
||||
});
|
||||
assert.equal(tgAbout(t.project.key).length, 1);
|
||||
assert.ok(msg.edits >= 1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user