This commit is contained in:
Smartsheet-JB-Brown 2025-04-17 17:25:28 -07:00
parent 8a9240000c
commit 1cb77542e1
2 changed files with 7 additions and 3 deletions

View file

@ -104,7 +104,7 @@ describe("PackageManagerView", () => {
})
// Should show loading state
expect(screen.getByText("Loading items...")).toBeInTheDocument()
expect(screen.getByText("Refreshing...")).toBeInTheDocument()
// Simulate receiving items
await act(async () => {
@ -175,7 +175,11 @@ describe("PackageManagerView", () => {
})
// Verify initial items are shown
expect(screen.getByText("3 items found")).toBeInTheDocument()
expect(
screen.getByText((content, element) => {
return element?.textContent === "3 items found"
}),
).toBeInTheDocument()
expect(screen.getByText("MCP Server 1")).toBeInTheDocument()
expect(screen.getByText("Mode 1")).toBeInTheDocument()
expect(screen.getByText("MCP Server 2")).toBeInTheDocument()

View file

@ -163,7 +163,7 @@ describe("PackageManagerItemCard", () => {
name: "View",
})
expect(button.querySelector(".codicon-link-external")).toBeInTheDocument()
expect(button).toHaveTextContent(/Source/i)
expect(button).toHaveTextContent("View")
})
})