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:
Jinjing
2026-07-17 17:05:33 -07:00
parent b98433c62c
commit 4b4f58167f
@@ -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(