fix: 收窄详情按钮并校正响应式回归(09-04-reimbursement-state-gap-finance-view)
这个提交包含在:
@@ -96,9 +96,12 @@ module.exports = async function verifyPaymentExperience({
|
||||
await page.goto(`${uiOrigin}${mobile ? "/mobile" : ""}/reimbursements/${form.id}`);
|
||||
const sourceActions = page.getByTestId(mobile ? "mobile-reimbursement-payment-actions" : "reimbursement-action-panel");
|
||||
await expect(sourceActions).toContainText("已生成银行制单");
|
||||
await expect(page.getByText("去组建付款批次", { exact: true })).toHaveCount(0);
|
||||
await expect(page.getByRole("link", { name: "创建批次", exact: true })).toHaveCount(0);
|
||||
const sourceLink = page.getByRole("link", { name: "查看所在付款批次", exact: true });
|
||||
await expect(sourceLink).toHaveCount(1);
|
||||
const linkBounds = await sourceLink.boundingBox();
|
||||
assert.ok(linkBounds.height >= 44);
|
||||
if (!mobile) assert.ok(linkBounds.width < 180);
|
||||
await sourceLink.click();
|
||||
const actions = page.getByTestId(mobile ? "payment-batch-mobile-actions" : "payment-batch-action-panel");
|
||||
await expect(actions.getByRole("button", { name: "上传银行回单" })).toBeVisible();
|
||||
@@ -117,7 +120,7 @@ module.exports = async function verifyPaymentExperience({
|
||||
await expect(page.getByTestId("payment-batch-processing-panel")).toBeVisible();
|
||||
await page.goBack();
|
||||
await expect(sourceActions).toContainText("已生成银行制单");
|
||||
await expect(page.getByText("去组建付款批次", { exact: true })).toHaveCount(0);
|
||||
await expect(page.getByRole("link", { name: "创建批次", exact: true })).toHaveCount(0);
|
||||
await expect(sourceLink).toHaveCount(1);
|
||||
const sourceProgress = page.getByTestId(mobile ? "mobile-reimbursement-processing-progress" : "reimbursement-workflow-progress");
|
||||
await expect(sourceProgress).toHaveCount(1);
|
||||
|
||||
在新工单中引用
屏蔽一个用户