回执再次优化
This commit is contained in:
@@ -128,7 +128,7 @@ try {
|
||||
for (const count of [20,18]) {
|
||||
const item = await business(ownerA,'passenger_list_import',{passenger_list:{row_count:count,tsv:'PRIVATE ROSTER'}},childRefs);
|
||||
const outcome = await complete(ownerA,item);
|
||||
assert.match(outcome.important_message.text,new RegExp('D300 名单:已导入,最近一次'+count+'人'));
|
||||
assert.match(outcome.important_message.text,new RegExp('D300 名单:已导入,最近一次 '+count+' 人'));
|
||||
assert.doesNotMatch(outcome.important_message.text,/PRIVATE ROSTER/);
|
||||
if(count===18) await service.hardDeleteTask(ownerA,item.taskId);
|
||||
}
|
||||
@@ -139,7 +139,7 @@ try {
|
||||
const restored = await complete(ownerA,restore);
|
||||
assert.match(restored.important_message.text,/订单状态:已恢复/);
|
||||
assert.match(restored.important_message.text,/子单 D300.*已取消/);
|
||||
assert.match(restored.important_message.text,/最近一次18人/,'latest roster survives deletion');
|
||||
assert.match(restored.important_message.text,/最近一次 18 人/,'latest roster survives deletion');
|
||||
assert.match((await service.getTask(org,plan.taskId,ownerA)).important_message.text,/本系统记录子单:0个/,'old snapshot stays frozen');
|
||||
assert.equal((await progress.history(pool,ownerB,'LW-PROGRESS')).length,0);
|
||||
assert.equal((await progress.history(pool,{...ownerA,organizationId:otherOrg},'LW-PROGRESS')).length,0);
|
||||
|
||||
Reference in New Issue
Block a user