fix(web): 收口管理页布局与浏览历史合同
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user