Skip to content

Commit e2adfee

Browse files
committed
.
1 parent da46e12 commit e2adfee

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/app/catalog/components/__tests__/servers-wrapper.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,9 @@ describe("ServersWrapper", () => {
118118
expect(screen.getByText("No results found")).toBeVisible();
119119
});
120120

121-
// Click the "Clear search" button in the empty state (the one with visible text, not the icon button)
122121
const clearButtons = screen.getAllByRole("button", {
123122
name: /clear search/i,
124123
});
125-
// The empty state button has visible text "Clear search", the search input has an icon
126124
const emptyStateClearButton = clearButtons.find(
127125
(btn) => btn.textContent === "Clear search",
128126
);

src/mocks/handlers.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ import { emptyServersHandlers } from "./scenarios/empty-servers";
44
import { serverDetailHandlers } from "./server-detail";
55

66
export const handlers: RequestHandler[] = [
7-
// Scenario handlers (cookie-activated) - must come first
7+
// Scenario handlers must come first (MSW uses first match)
88
...emptyServersHandlers,
9-
// Custom handlers
109
...serverDetailHandlers,
11-
// Auto-generated handlers (fallback)
1210
...autoGeneratedHandlers,
1311
];

0 commit comments

Comments
 (0)