mirror of
https://github.com/stablyai/orca.git
synced 2026-10-18 00:03:20 +00:00
Use invokeAction for model option in NativeChatComposer test
Codex model is an agent picker mid-session, so setOption rejects. Update test to use invokeAction to match the actual UI behavior.
This commit is contained in:
@@ -371,8 +371,9 @@ describe('NativeChatComposer', () => {
|
||||
/>
|
||||
)
|
||||
|
||||
// Why: Codex model is agent-picker mid-session — setOption rejects; UI uses invokeAction.
|
||||
await act(async () => {
|
||||
await mocks.fieldProps?.sessionOptionsSurface?.setOption('model', '')
|
||||
await mocks.fieldProps?.sessionOptionsSurface?.invokeAction('model')
|
||||
})
|
||||
|
||||
expect(mocks.sendNativeChatMessageVerified).toHaveBeenCalledWith(
|
||||
|
||||
Reference in New Issue
Block a user