Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions static/app/views/detectors/list/allMonitors.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand All @@ -509,7 +509,7 @@ describe('DetectorsList', () => {
url: '/organizations/org-slug/detectors/',
body: filteredDetectors,
headers: {
'X-Hits': '50',
'X-Hits': '10',
},
match: [
MockApiClient.matchQuery({
Expand Down Expand Up @@ -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);

Expand Down
Loading