A2-A4-A9 完善报销码值与查重回归
这个提交包含在:
@@ -535,6 +535,9 @@ test.describe("R111 国内报销发票与附件双端体验", () => {
|
||||
expect(bodyText).not.toContain("不绑定明细");
|
||||
expect(bodyText).not.toContain("发票池");
|
||||
expect(bodyText).not.toContain("OCR");
|
||||
expect(bodyText).not.toMatch(/\bdraft\b/);
|
||||
expect(bodyText).not.toMatch(/\bbound\b/);
|
||||
expect(bodyText).not.toContain("business_client_meal");
|
||||
await page.screenshot({ path: screenshotPath("pc-reimbursement-detail.png"), fullPage: true });
|
||||
});
|
||||
|
||||
|
||||
@@ -30,6 +30,13 @@ function screenshotPath(fileName: string) {
|
||||
return path.join(SCREENSHOT_DIR, fileName.endsWith(".png") ? fileName : `${fileName}.png`);
|
||||
}
|
||||
|
||||
async function expectNoRawReimbursementCodes(page: Page) {
|
||||
const bodyText = await page.locator("body").innerText();
|
||||
expect(bodyText).not.toMatch(/\bdraft\b/);
|
||||
expect(bodyText).not.toMatch(/\bbound\b/);
|
||||
expect(bodyText).not.toContain("business_client_meal");
|
||||
}
|
||||
|
||||
function buildMe() {
|
||||
return {
|
||||
id: ownerId,
|
||||
@@ -400,6 +407,7 @@ test.describe("R125 发票删除后重传", () => {
|
||||
await expect(page.getByText("发票上传完成:1 张已添加")).toBeVisible({ timeout: 10_000 });
|
||||
await page.keyboard.press("Escape");
|
||||
await expect(page.getByText("北京悦海堂餐饮管理有限公司")).toBeVisible();
|
||||
await expectNoRawReimbursementCodes(page);
|
||||
await page.screenshot({ path: screenshotPath("pc-reupload-after-unbind.png"), fullPage: true });
|
||||
});
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户