优化回执排序
This commit is contained in:
1 parent
1797c713af
commit
a7c9cc358a
7 files changed
+168
-36
No files matched your search
@@ -43,6 +43,7 @@ test('hotel arrangement uses the customer bilingual booking template', () => {
|
||||
'IN. 03/06/2026',
|
||||
'OUT 04/06/2026',
|
||||
'1Night. 6Twin',
|
||||
'',
|
||||
'②新订单',
|
||||
'团号:LW-260603Z-A 老挝联泰',
|
||||
'入住日期:2026.06.03',
|
||||
@@ -65,7 +66,7 @@ test('hotel clear and update replies stay business-readable when the booking tem
|
||||
}
|
||||
);
|
||||
assert.ok(clearReply);
|
||||
assert.equal(clearReply.text, '酒店安排已清除\n团号:LW-260603Z-A');
|
||||
assert.equal(clearReply.text, '酒店安排已清除\n\n团号:LW-260603Z-A');
|
||||
|
||||
const updateReply = buildCustomerSuccessReply(
|
||||
{ success: true, group_number: 'LW-260603Z-A' },
|
||||
@@ -79,7 +80,7 @@ test('hotel clear and update replies stay business-readable when the booking tem
|
||||
}
|
||||
);
|
||||
assert.ok(updateReply);
|
||||
assert.equal(updateReply.text, '酒店安排成功\n团号:LW-260603Z-A\n退房日期:2026-06-05\n房数:9间');
|
||||
assert.equal(updateReply.text, '酒店安排成功\n\n团号:LW-260603Z-A\n退房日期:2026-06-05\n房数:9间');
|
||||
});
|
||||
|
||||
test('hotel replacement reply describes the new hotel and count while retaining the original dates', () => {
|
||||
@@ -100,7 +101,7 @@ test('hotel replacement reply describes the new hotel and count while retaining
|
||||
}
|
||||
}
|
||||
);
|
||||
assert.equal(reply?.text, '酒店安排成功\n团号:LW-TEST-A\n资源:测试新酒店\n入住日期:2026-09-15\n退房日期:2026-09-16\n房数:9间');
|
||||
assert.equal(reply?.text, '酒店安排成功\n\n团号:LW-TEST-A\n资源:测试新酒店\n入住日期:2026-09-15\n退房日期:2026-09-16\n房数:9间');
|
||||
assert.equal(reply?.fields.resource, '测试新酒店');
|
||||
assert.equal(reply?.fields.quantity, 9);
|
||||
});
|
||||
@@ -112,7 +113,7 @@ test('batch newbooking receipt preserves every group number', () => {
|
||||
{ action: 'team_order_batch_create', data: {} }
|
||||
);
|
||||
assert.ok(reply);
|
||||
assert.equal(reply.text, '批量下单成功\n团号:LW-260603A-A、LW-260605A-A');
|
||||
assert.equal(reply.text, '批量下单成功\n\n团号:\n LW-260603A-A\n LW-260605A-A');
|
||||
});
|
||||
|
||||
test('update and file replies expose business fields without technical evidence', () => {
|
||||
@@ -128,7 +129,7 @@ test('update and file replies expose business fields without technical evidence'
|
||||
}
|
||||
);
|
||||
assert.ok(updateReply);
|
||||
assert.equal(updateReply.text, '散拼母团信息修改成功\n团号:LW-260603A-A\n计划收客数:45');
|
||||
assert.equal(updateReply.text, '散拼母团信息修改成功\n\n团号:LW-260603A-A\n计划收客数:45');
|
||||
assert.doesNotMatch(updateReply.text, /sha256|verification|blocker|execution/iu);
|
||||
|
||||
const baseReceipt = buildCustomerSuccessReceipt(
|
||||
@@ -146,7 +147,7 @@ test('update and file replies expose business fields without technical evidence'
|
||||
},
|
||||
{ action: 'confirmation_export', data: { existing_refs: { identifier: 'LW-260603A-A' } } }
|
||||
);
|
||||
assert.equal(replyTextFromReceipt(baseReceipt), '团队文件已准备\n团号:LW-260603A-A\n文件:liantai-confirm.docx');
|
||||
assert.equal(replyTextFromReceipt(baseReceipt), '团队文件已准备\n\n团号:LW-260603A-A\n文件:liantai-confirm.docx');
|
||||
assert.deepEqual(replyAttachmentsFromReceipt(baseReceipt), [{
|
||||
name: 'liantai-confirm.docx',
|
||||
content_type: 'application/msword',
|
||||
@@ -181,7 +182,7 @@ test('visitor export reply exposes only the mobile XLSX delivery artifact', () =
|
||||
},
|
||||
{ action: 'confirmation_export', data: { existing_refs: { identifier: 'LW-260816Z-A' } } }
|
||||
);
|
||||
assert.equal(replyTextFromReceipt(receipt!), '团队文件已准备\n团号:LW-260816Z-A\n文件:LW-260816Z-A Visitor.xlsx');
|
||||
assert.equal(replyTextFromReceipt(receipt!), '团队文件已准备\n\n团号:LW-260816Z-A\n文件:LW-260816Z-A Visitor.xlsx');
|
||||
assert.deepEqual(replyAttachmentsFromReceipt(receipt!), [{
|
||||
name: 'LW-260816Z-A Visitor.xlsx',
|
||||
content_type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||
@@ -206,7 +207,7 @@ test('legacy ERP mojibake filenames are repaired when a stored receipt is read',
|
||||
},
|
||||
{ action: 'confirmation_export', data: { existing_refs: { identifier: 'LW-261202A-A' } } }
|
||||
);
|
||||
assert.equal(replyTextFromReceipt(receipt), '团队文件已准备\n团号:LW-261202A-A\n文件:LLW-261202A-A 客户确认书.doc');
|
||||
assert.equal(replyTextFromReceipt(receipt), '团队文件已准备\n\n团号:LW-261202A-A\n文件:LLW-261202A-A 客户确认书.doc');
|
||||
assert.deepEqual(replyAttachmentsFromReceipt(receipt), [{
|
||||
name: 'LLW-261202A-A 客户确认书.doc',
|
||||
content_type: 'application/msword',
|
||||
|
||||
Reference in new issue
Block a user