mirror of
https://github.com/stablyai/orca.git
synced 2026-11-04 19:17:28 +00:00
test(accounts): keep quota fixtures consistent with saved state
This commit is contained in:
@@ -138,13 +138,16 @@ describe('ZcodePlanAccountsSection', () => {
|
||||
render(<ZcodePlanAccountsSection />)
|
||||
|
||||
expect(await screen.findByText('Using the ZCode CLI sign-in')).toBeInTheDocument()
|
||||
expect(screen.getByText(/~\/\.zcode\/cli\/config\.json/)).toBeInTheDocument()
|
||||
expect(
|
||||
screen.getByText(/selected Coding Plan from the ZCode CLI credential store/)
|
||||
).toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('saves a trimmed API key through the credential IPC', async () => {
|
||||
render(<ZcodePlanAccountsSection />)
|
||||
|
||||
const input = await screen.findByPlaceholderText('Paste your GLM Coding Plan API key')
|
||||
mocks.getStatus.mockResolvedValue({ apiKeyConfigured: true, zcodeCliConfigured: false })
|
||||
fireEvent.change(input, { target: { value: ' glm-secret ' } })
|
||||
fireEvent.click(screen.getByRole('button', { name: 'Save' }))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user