feat(summary): send complete articles within user budget (#39)
This commit is contained in:
@ -57,6 +57,7 @@ describe('Mes préférences', () => {
|
||||
await waitFor(() => expect(updatePreferences).toHaveBeenCalledWith({
|
||||
language: 'en',
|
||||
ranking_mode: 'title_content',
|
||||
summary_prompt_token_budget: 250000,
|
||||
}))
|
||||
})
|
||||
it('charge les valeurs françaises et affiche les libellés et l’aide', async () => {
|
||||
@ -81,7 +82,7 @@ describe('Mes préférences', () => {
|
||||
await user.selectOptions(screen.getByLabelText(/informations utilisées par Laya/i), 'title')
|
||||
await user.click(screen.getByRole('button', { name: 'Enregistrer' }))
|
||||
expect(await screen.findByRole('status')).toHaveTextContent('Préférences enregistrées.')
|
||||
expect(updatePreferences).toHaveBeenLastCalledWith({ language: 'fr', ranking_mode: 'title' })
|
||||
expect(updatePreferences).toHaveBeenLastCalledWith({ language: 'fr', ranking_mode: 'title', summary_prompt_token_budget: 250000 })
|
||||
view.unmount()
|
||||
render(<Preferences />)
|
||||
expect(await screen.findByLabelText(/langue/i)).toHaveValue('fr')
|
||||
|
||||
Reference in New Issue
Block a user