mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 03:30:40 +00:00
test(integration): match new cron notification format in interactive tests (#3402)
Cron prompts are rendered as `● Cron: …` notifications since the distinct Cron message type was added; the interactive tests still waited for the legacy `> …` user-message line and timed out.
This commit is contained in:
parent
355ac5d54a
commit
cbf409840d
1 changed files with 5 additions and 5 deletions
|
|
@ -55,15 +55,15 @@ function makeEnv(): NodeJS.ProcessEnv {
|
|||
);
|
||||
|
||||
await session.waitForScreen(
|
||||
(scr) => scr.split('\n').some((l) => l.trim() === '> PONG7742'),
|
||||
'cron-injected prompt "> PONG7742"',
|
||||
(scr) => scr.includes('Cron: PONG7742'),
|
||||
'cron notification "Cron: PONG7742"',
|
||||
90_000,
|
||||
);
|
||||
|
||||
await session.idle(5000);
|
||||
const finalScreen = await session.screen();
|
||||
const afterPrompt = finalScreen.slice(
|
||||
finalScreen.lastIndexOf('> PONG7742'),
|
||||
finalScreen.lastIndexOf('Cron: PONG7742'),
|
||||
);
|
||||
expect(afterPrompt).toContain('✦');
|
||||
});
|
||||
|
|
@ -79,8 +79,8 @@ function makeEnv(): NodeJS.ProcessEnv {
|
|||
);
|
||||
|
||||
await session.waitForScreen(
|
||||
(scr) => scr.split('\n').some((l) => l.trim() === '> CRONTICK99'),
|
||||
'first cron fire "> CRONTICK99"',
|
||||
(scr) => scr.includes('Cron: CRONTICK99'),
|
||||
'first cron fire "Cron: CRONTICK99"',
|
||||
90_000,
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue