mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
fix(frontend): query combobox options by role in preview and model tests
This commit is contained in:
1 parent
c7de6629bf
commit
5738467dee
2 files changed
+2
-2
No files matched your search
@@ -164,7 +164,7 @@ describe('PreviewPanel', () => {
|
||||
|
||||
await user.type(screen.getByRole('combobox', { name: 'Preview port' }), 'python')
|
||||
expect(screen.queryByText('This repo')).not.toBeInTheDocument()
|
||||
await user.click(screen.getByRole('button', { name: /:9000 python3\.12/ }))
|
||||
await user.click(screen.getByRole('option', { name: /:9000 python3\.12/ }))
|
||||
|
||||
expect(await screen.findByTitle('Preview')).toBeInTheDocument()
|
||||
expect(createPreviewSession).toHaveBeenCalledWith(9000)
|
||||
|
||||
@@ -432,7 +432,7 @@ describe('OpenCodeModelDialog — model discovery', () => {
|
||||
const providerModelInput = screen.getByPlaceholderText('e.g., MiniMax-M2.7')
|
||||
fireEvent.focus(providerModelInput)
|
||||
|
||||
const option = await screen.findByRole('button', { name: 'gpt-4o' })
|
||||
const option = await screen.findByRole('option', { name: 'gpt-4o' })
|
||||
fireEvent.click(option)
|
||||
|
||||
const modelIdInput = document.querySelector('input[name="modelId"]') as HTMLInputElement
|
||||
|
||||
Reference in new issue
Block a user