ui: search BPM process and node choices inline

This commit is contained in:
abaishu0730 committed 2026-10-23 17:34:06 +08:00
1 parent d38625500e
commit 61f561a842
13 files changed
+54 -18

No files matched your search

@@ -12,7 +12,7 @@ test('classification edits distribution and checks an active interface without e
assert.equal(await page.locator('#rule-inline-open,#rule-inline-mapping,[data-recognition-candidate],[data-recognition-advanced]').count(),0);
await page.getByRole('heading',{name:'适用通知',exact:true}).waitFor();
assert.equal(await page.getByLabel('搜索订单号、流水号或标题',{exact:true}).count(),0);
assert.equal(await page.getByLabel('第1行适用流程',{exact:true}).isVisible(),true);
assert.equal(await page.getByRole('combobox',{name:'第1行适用流程',exact:true}).isVisible(),true);
const before=runtime.orderRules.all('field-mapping-drafts');await page.getByLabel('收件人',{exact:true}).fill('distribution@example.test');
await page.getByRole('button',{name:'检查识别结果',exact:true}).click();await page.locator('#order-rule-preview-result').getByText('需要处理',{exact:true}).waitFor();
assert.equal(runtime.orderRules.get('rules','bs-change').trialVersion,null);assert.deepEqual(runtime.orderRules.all('field-mapping-drafts'),before);
@@ -36,7 +36,7 @@ test('classification excludes history from notification verification and never o
});
test('leaving distribution for mapping respects unsaved inputs and business search does not submit the rule',{timeout:90000},async t=>{
const {page,runtime}=await orderDrivenUI(t,'#order-rules');await page.locator('[data-rule-id="bs-change"]').click();const version=runtime.orderRules.get('rules','bs-change').draft.version;
await page.getByLabel('收件人',{exact:true}).fill('keep@example.test');await page.getByLabel('搜索流程或节点',{exact:true}).fill('备损');await page.getByLabel('搜索流程或节点',{exact:true}).press('Enter');
await page.getByLabel('收件人',{exact:true}).fill('keep@example.test');await page.getByRole('combobox',{name:'第1行适用流程',exact:true}).fill('备损');await page.getByRole('combobox',{name:'第1行适用流程',exact:true}).press('Escape');
assert.equal(runtime.orderRules.get('rules','bs-change').draft.version,version);
await page.getByRole('link',{name:'字段映射',exact:true}).first().click();await page.getByRole('button',{name:'留在此页',exact:true}).click();assert.equal(await page.getByLabel('收件人',{exact:true}).inputValue(),'keep@example.test');
await page.getByRole('link',{name:'字段映射',exact:true}).first().click();await page.getByRole('button',{name:'放弃并继续',exact:true}).click();await page.getByRole('switch',{name:'自动采集流程和节点',exact:true}).waitFor();