refactor: optimize ServerDetail loading and update MapTooltip positioning logic

This commit is contained in:
hamster1963
2026-07-05 04:19:39 +08:00
parent 6c7ba30cee
commit d295d549da
3 changed files with 19 additions and 26 deletions
@@ -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/ }));