mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +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
@@ -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