diff --git a/static/app/views/detectors/list/allMonitors.spec.tsx b/static/app/views/detectors/list/allMonitors.spec.tsx index 878b120bce7359..1a1619eaec1f34 100644 --- a/static/app/views/detectors/list/allMonitors.spec.tsx +++ b/static/app/views/detectors/list/allMonitors.spec.tsx @@ -497,7 +497,7 @@ describe('DetectorsList', () => { const testUser = UserFixture({id: '2', email: 'test@example.com'}); // Mock the filtered search results - this will be used when search is applied - const filteredDetectors = Array.from({length: 20}, (_, i) => + const filteredDetectors = Array.from({length: 3}, (_, i) => MetricDetectorFixture({ id: `filtered-${i}`, name: `Assigned Detector ${i + 1}`, @@ -509,7 +509,7 @@ describe('DetectorsList', () => { url: '/organizations/org-slug/detectors/', body: filteredDetectors, headers: { - 'X-Hits': '50', + 'X-Hits': '10', }, match: [ MockApiClient.matchQuery({ @@ -540,9 +540,9 @@ describe('DetectorsList', () => { await userEvent.click(masterCheckbox); // Should show alert with option to select all query results - expect(screen.getByText(/20 monitors on this page selected/)).toBeInTheDocument(); + expect(screen.getByText(/3 monitors on this page selected/)).toBeInTheDocument(); const selectAllForQuery = screen.getByRole('button', { - name: /Select all 50 monitors that match this search query/, + name: /Select all 10 monitors that match this search query/, }); await userEvent.click(selectAllForQuery);