Skip to content

The agent that grows with you

test(desktop): wait for the endpoint form before editing it

brooklyn!40f29e280cc7
diff --git a/apps/desktop/src/app/settings/custom-endpoints-settings.test.tsx b/apps/desktop/src/app/settings/custom-endpoints-settings.test.tsx
index f93c63b51be..8ccbdd1355f 100644
--- a/apps/desktop/src/app/settings/custom-endpoints-settings.test.tsx
+++ b/apps/desktop/src/app/settings/custom-endpoints-settings.test.tsx
@@ -151,7 +151,7 @@ describe('CustomEndpointsSettings', () => {
await waitFor(() => expect(getCustomEndpoints).toHaveBeenCalledWith('content-studio'))
expect(screen.getByText('Applies to')).toBeTruthy()
- fireEvent.change(screen.getByPlaceholderText('Axet Proxy'), { target: { value: 'Studio gateway' } })
+ fireEvent.change(await screen.findByPlaceholderText('Axet Proxy'), { target: { value: 'Studio gateway' } })
fireEvent.change(screen.getByPlaceholderText('http://127.0.0.1:8081/v1'), {
target: { value: 'https://studio.example.com/v1' }
})