mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
test(cli): wait for full auth error copy
This commit is contained in:
parent
395791feeb
commit
1527c0333f
1 changed files with 3 additions and 2 deletions
|
|
@ -439,9 +439,10 @@ describe('AuthDialog', () => {
|
|||
|
||||
// Should show error message instead of calling handleAuthSelect
|
||||
await vi.waitFor(() => {
|
||||
expect(lastFrame()).toContain('You must select an auth method');
|
||||
const frame = lastFrame();
|
||||
expect(frame).toContain('You must select an auth method');
|
||||
expect(frame).toContain('Press Ctrl+C again to exit');
|
||||
});
|
||||
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