mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
test(cli): stabilize AuthDialog ESC assertion
This commit is contained in:
parent
baf848a4d9
commit
395791feeb
1 changed files with 4 additions and 3 deletions
|
|
@ -438,9 +438,10 @@ describe('AuthDialog', () => {
|
|||
await wait();
|
||||
|
||||
// Should show error message instead of calling handleAuthSelect
|
||||
expect(lastFrame()).toContain(
|
||||
'You must select an auth method to proceed. Press Ctrl+C again to exit.',
|
||||
);
|
||||
await vi.waitFor(() => {
|
||||
expect(lastFrame()).toContain('You must select an auth method');
|
||||
});
|
||||
expect(lastFrame()).toContain('Press Ctrl+C again to exit');
|
||||
expect(handleAuthSelect).not.toHaveBeenCalled();
|
||||
unmount();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue