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
feat: update unit test
amlannandyd09c4d947edd
diff --git a/frontend/src/pages/DashboardsListPage/__tests__/DashboardListPage.test.tsx b/frontend/src/pages/DashboardsListPage/__tests__/DashboardListPage.test.tsxindex e8ab48f9c3..21cfd2ae65 100644--- a/frontend/src/pages/DashboardsListPage/__tests__/DashboardListPage.test.tsx+++ b/frontend/src/pages/DashboardsListPage/__tests__/DashboardListPage.test.tsx@@ -213,7 +213,7 @@ describe('dashboard list page', () => {);});- it('ensure that the popover action renders list of options and export JSON works correctly', async () => {+ it('ensure that the export JSON popover action works correctly', async () => {const { getByText, getAllByTestId } = render(<MemoryRouter initialEntries={['/dashbords']}><DashboardProvider>@@ -228,11 +228,9 @@ describe('dashboard list page', () => {fireEvent.click([...popovers[0].children][0]);});- expect(getByText('View')).toBeInTheDocument();- expect(getByText('Copy Link')).toBeInTheDocument();- expect(getByText('Export JSON')).toBeInTheDocument();-- fireEvent.click(getByText('Export JSON'));+ const exportJsonBtn = getByText('Export JSON');+ expect(exportJsonBtn).toBeInTheDocument();+ fireEvent.click(exportJsonBtn);expect(dashboardUtils.sanitizeDashboardData).toHaveBeenCalled();});});