fix(web): 收口管理页布局与浏览历史合同

This commit is contained in:
root
2026-07-13 13:26:33 +02:00
parent d897a1dc8c
commit 951559de54
2 changed files with 7 additions and 6 deletions
@@ -90,19 +90,19 @@ test("URL is authoritative across direct links and browser back-forward navigati
await expect(page.getByPlaceholder("搜索用户名、邮箱或 user id")).toHaveValue("alpha");
await expect(page.locator(".admin-users-filters select").nth(0)).toHaveValue("active");
await expect(page.locator(".admin-users-filters select").nth(1)).toHaveValue("admin");
await expect(page.getByText("page 2 / 3")).toBeVisible();
await expect(page.getByText(" 2 / 3 页,共 60 条")).toBeVisible();
await page.goto("/admin/users?q=beta&filter=disabled&role=user&cursor=1");
await expect(page.getByPlaceholder("搜索用户名、邮箱或 user id")).toHaveValue("beta");
await page.goBack();
await expect(page.getByPlaceholder("搜索用户名、邮箱或 user id")).toHaveValue("alpha");
await expect(page.getByText("page 2 / 3")).toBeVisible();
await expect(page.getByText(" 2 / 3 页,共 60 条")).toBeVisible();
await page.goForward();
await expect(page.getByPlaceholder("搜索用户名、邮箱或 user id")).toHaveValue("beta");
await page.goto("/admin/billing?tab=redemptions&view=list&userId=user-a&codeId=code-a");
await page.goto("/admin/billing?tab=redemptions&view=detail&userId=user-a&codeId=code-a");
await expect(page.getByPlaceholder("user id")).toHaveValue("user-a");
await expect(page.getByPlaceholder("code id")).toHaveValue("code-a");
await page.goto("/admin/billing?tab=redemptions&view=cards&userId=user-b&codeId=code-b");
await page.goto("/admin/billing?tab=redemptions&view=summary&userId=user-b&codeId=code-b");
await expect(page.getByPlaceholder("user id")).toHaveValue("user-b");
await page.goBack();
await expect(page.getByPlaceholder("user id")).toHaveValue("user-a");