Skip to content

test: add ApiKeySetupScreen error-handling tests#1715

Open
jiya2401 wants to merge 1 commit into
utksh1:mainfrom
jiya2401:test/apikeysetupscreen-error-handling
Open

test: add ApiKeySetupScreen error-handling tests#1715
jiya2401 wants to merge 1 commit into
utksh1:mainfrom
jiya2401:test/apikeysetupscreen-error-handling

Conversation

@jiya2401

@jiya2401 jiya2401 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Closes #1412

Summary

Adds dedicated error-handling test coverage for ApiKeySetupScreen,
matching the acceptance criteria.

What's covered

  • Mocks a failed API-key setup and asserts the role="alert" error
    feedback renders with the correct message
  • Confirms retry/editing the key remains possible: after a failure the
    input stays editable, can be corrected, and a second successful
    attempt clears the error and fires onSaved

Testing

  • npx tsc --noEmit -> clean
  • `npx vitest run
Screenshot 2026-07-06 154826

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TEST] Add ApiKeySetupScreen error-handling tests

1 participant