feat: process BPM notification tasks with verified readonly forms
This commit is contained in:
1 parent
94fc985553
commit
a9d050d87a
28 files changed
+879
-34
No files matched your search
@@ -111,3 +111,10 @@ test('admin can restore an exhausted failed batch with a required recovery note'
|
||||
test('old arrivals explain that an arbitrary detail link cannot establish the order identity',{timeout:30000},async t=>{
|
||||
const {page,base}=await fixture(t);await page.goto(base+'/#rules');await page.getByRole('button',{name:'编辑规则',exact:true}).click({timeout:3000});await page.getByText('历史记录若未保存 tid/pid 或权威详情链接,请先重新扫描获取来源依据,不能用任意链接绑定订单。',{exact:true}).waitFor({timeout:1000});
|
||||
});
|
||||
|
||||
|
||||
test('operator can explicitly read real notification tasks without enabling processing or sending',{timeout:30000},async t=>{
|
||||
const {page,state,base}=await fixture(t,'operator');await page.goto(base+'/#order-rules');await page.getByRole('heading',{name:'分类规则',exact:true}).waitFor({timeout:3000});
|
||||
await page.getByLabel('通知任务来源连接',{exact:true}).selectOption('conn-1');await page.getByRole('button',{name:'读取通知任务',exact:true}).click();
|
||||
await page.getByText('只读采集完成',{exact:false}).waitFor({timeout:3000});assert.equal(state.calls.some(call=>call.path==='/api/order-workflow/source-scan'&&call.body.connectionId==='conn-1'),true);assert.equal(state.calls.some(call=>call.path==='/api/order-workflow/settings'),false);
|
||||
});
|
||||
Reference in new issue
Block a user