mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
round 4
This commit is contained in:
parent
8a9240000c
commit
1cb77542e1
2 changed files with 7 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ describe("PackageManagerItemCard", () => {
|
|||
name: "View",
|
||||
})
|
||||
expect(button.querySelector(".codicon-link-external")).toBeInTheDocument()
|
||||
expect(button).toHaveTextContent(/Source/i)
|
||||
expect(button).toHaveTextContent("View")
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue