Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

test(traces-explorer): flaky "select a view" test on CI (#12931)

Aditya Singh2ff7e7d3af61
diff --git a/frontend/src/pages/TracesExplorer/__test__/TracesExplorer.test.tsx b/frontend/src/pages/TracesExplorer/__test__/TracesExplorer.test.tsx
index cb46eb13e3..df24fc2203 100644
--- a/frontend/src/pages/TracesExplorer/__test__/TracesExplorer.test.tsx
+++ b/frontend/src/pages/TracesExplorer/__test__/TracesExplorer.test.tsx
@@ -366,8 +366,10 @@ describe('TracesExplorer -', () => {
fireEvent.mouseDown(viewSearchInput);
+ // The saved-views request has to land and re-render the dropdown before the
+ // option exists; findByRole's 1s default is not enough on a loaded runner.
await expect(
- screen.findByRole('option', { name: 'R-test panel' }),
+ screen.findByRole('option', { name: 'R-test panel' }, { timeout: 5000 }),
).resolves.toBeInTheDocument();
// save this view