fix: correct test expectation for model provider setting payload

The test was expecting 'provider' but the actual value passed is
'model-provider' from ACCOUNT_SETTING_TAB.MODEL_PROVIDER constant.
This commit is contained in:
yyh
2026-01-19 18:00:46 +08:00
parent 144ca11c03
commit c979b59e1e

View File

@ -622,7 +622,7 @@ describe('DatasetUpdateForm', () => {
fireEvent.click(screen.getByTestId('step-two-setting'))
// Assert
expect(mockSetShowAccountSettingModal).toHaveBeenCalledWith({ payload: 'provider' })
expect(mockSetShowAccountSettingModal).toHaveBeenCalledWith({ payload: 'model-provider' })
})
it('should update crawl options when onCrawlOptionsChange is called', () => {