修复报销进度审批节点覆盖(07-27-yang-jun-reimbursement-readiness)
这个提交包含在:
@@ -79,6 +79,8 @@ export class ReimbursementDetailPageObject {
|
||||
}
|
||||
|
||||
async uploadInvoicePdf(fileName: string, buffer: Buffer) {
|
||||
const invoiceCards = this.invoices.locator(":scope > div");
|
||||
const invoiceCountBeforeUpload = await invoiceCards.count();
|
||||
await this.invoiceAddBtn.click();
|
||||
await expect(this.invoiceDialog).toBeVisible();
|
||||
|
||||
@@ -101,7 +103,7 @@ export class ReimbursementDetailPageObject {
|
||||
throw new Error(`上传发票后未返回票据 ID: ${JSON.stringify(uploadPayload)}`);
|
||||
}
|
||||
|
||||
await expect(this.invoices).toContainText(fileName, { timeout: 90_000 });
|
||||
await expect(invoiceCards).toHaveCount(invoiceCountBeforeUpload + 1, { timeout: 90_000 });
|
||||
await this.page.keyboard.press("Escape");
|
||||
await expect(this.invoiceDialog).toHaveCount(0);
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户