mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-09-19 09:40:14 +00:00
refactor: optimize ServerDetail loading and update MapTooltip positioning logic
This commit is contained in:
@@ -161,6 +161,9 @@ describe("MapTooltip", () => {
|
||||
);
|
||||
|
||||
expect(await screen.findByText("Mainland China")).toBeInTheDocument();
|
||||
expect(screen.getByTestId("map-tooltip")).toHaveStyle({
|
||||
transform: "translate(20%, 8px)",
|
||||
});
|
||||
expect(screen.getByText("2 map.Servers")).toBeInTheDocument();
|
||||
await user.click(screen.getByRole("button", { name: /edge-2/ }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user