Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test([issue-1198]): de-flake SeriesLlmPicker provider/model change tests
[._.]/ Adam Eivy6c4ac74a1e50
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 9ff68bee2a..a8467b340f 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -35,6 +35,8 @@## Changed+- **[issue-1198] Stabilized a flaky pipeline test** — the Series AI-provider picker test no longer races the async option list, so CI stops failing intermittently on it. No behavior change.+- **[issue-1172] Added route-level tests for the Digital Twin and Agent Tools APIs** — pins request validation and error/status handling so a regression in those endpoints surfaces in CI. No behavior change.- **[issue-1167] Trimmed two dependencies' footprint** — the Moltworld real-time connection now uses the runtime's built-in WebSocket instead of a third-party library, and the Claude Code changelog feed parses with a small built-in extractor. No behavior change.diff --git a/client/src/components/pipeline/SeriesLlmPicker.test.jsx b/client/src/components/pipeline/SeriesLlmPicker.test.jsxindex 4c4e63c87d..d6900d5a69 100644--- a/client/src/components/pipeline/SeriesLlmPicker.test.jsx+++ b/client/src/components/pipeline/SeriesLlmPicker.test.jsx@@ -47,6 +47,9 @@ describe('SeriesLlmPicker', () => {const onSeriesUpdate = vi.fn();renderPicker({ id: 's1', llm: undefined }, onSeriesUpdate);await waitFor(() => expect(getProviders).toHaveBeenCalled());+ // Wait for the provider option to render before selecting it (its options+ // come from the async getProviders result — same populate race as above).+ await screen.findByRole('option', { name: 'Provider One' });fireEvent.change(screen.getAllByRole('combobox')[0], { target: { value: 'p1' } });await waitFor(() => expect(updatePipelineSeries).toHaveBeenCalledWith('s1', { llm: { provider: 'p1', model: null } }));await waitFor(() => expect(onSeriesUpdate).toHaveBeenCalledWith({ id: 's1', llm: { provider: 'p1', model: null } }));@@ -69,6 +72,11 @@ describe('SeriesLlmPicker', () => {it('preserves the chosen provider when only the model changes', async () => {renderPicker({ id: 's1', llm: { provider: 'p1', model: '' } });await waitFor(() => expect(getProviders).toHaveBeenCalled());+ // The model <select>'s options are populated from the async getProviders+ // result. Wait for the target option to actually exist before changing the+ // value — firing the change before the provider's models render leaves the+ // picker mid-populate and saves the wrong (empty) provider (flaky in CI).+ await screen.findByRole('option', { name: 'm2' });fireEvent.change(screen.getAllByRole('combobox')[1], { target: { value: 'm2' } });await waitFor(() => expect(updatePipelineSeries).toHaveBeenCalledWith('s1', { llm: { provider: 'p1', model: 'm2' } }));});