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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
chore: update slow running test in tracesExplorer test (#9396)
SagarRajput-7d05d394f57e0
diff --git a/frontend/src/pages/TracesExplorer/__test__/TracesExplorer.test.tsx b/frontend/src/pages/TracesExplorer/__test__/TracesExplorer.test.tsxindex 25b20fe92c..488f0ebd7f 100644--- a/frontend/src/pages/TracesExplorer/__test__/TracesExplorer.test.tsx+++ b/frontend/src/pages/TracesExplorer/__test__/TracesExplorer.test.tsx@@ -700,24 +700,23 @@ describe('TracesExplorer - ', () => {});it('select a view options - assert and save this view', async () => {+ jest.useFakeTimers();+const { container } = renderWithTracesExplorerRouter(<TracesExplorer />, ['/traces-explorer/?panelType=list&selectedExplorerView=list',]);- await screen.findByText(FILTER_SERVICE_NAME);- await act(async () => {- fireEvent.mouseDown(- container.querySelector(- '.view-options .ant-select-selection-search-input',- ) as HTMLElement,- );- });- const viewListOptions = await screen.findByRole('listbox');- expect(viewListOptions).toBeInTheDocument();+ const viewSearchInput = container.querySelector(+ '.view-options .ant-select-selection-search-input',+ ) as HTMLElement;++ expect(viewSearchInput).toBeInTheDocument();- expect(within(viewListOptions).getByText('R-test panel')).toBeInTheDocument();+ fireEvent.mouseDown(viewSearchInput);- expect(within(viewListOptions).getByText('Table View')).toBeInTheDocument();+ expect(+ await screen.findByRole('option', { name: 'R-test panel' }),+ ).toBeInTheDocument();// save this viewfireEvent.click(screen.getByText('Save this view'));