feat: derive rule scope and business values from selected orders

This commit is contained in:
abaishu0730 committed 2026-10-20 11:36:37 +08:00
1 parent 24b3adecaf
commit b9dae75f4a
17 files changed
+116 -47

No files matched your search

+2 -2
View File
@@ -16,8 +16,8 @@ test('workbench searches categories, pairs rows and trials unsaved input before
assert.match(await page.locator('#rule-field-coverage').innerText(),/表单版本 1.4.*已核验/);
assert.equal(await page.locator('#rule-category-list').evaluate(list=>{const row=list.querySelector('[aria-current]'),a=row.getBoundingClientRect(),b=list.getBoundingClientRect();return a.top>=b.top&&a.bottom<=b.bottom;}),true);
await page.getByLabel('搜索分类',{exact:true}).fill('备损');assert.equal(await page.locator('[data-rule-id]').count(),2);
await page.getByRole('heading',{name:'哪些订单归到这里?',exact:true}).waitFor();
await page.getByRole('button',{name:'添加流程节点',exact:true}).click();assert.equal(await page.locator('[data-scope-row]').count(),2);
await page.getByRole('heading',{name:'选择对应的 BPM 订单',exact:true}).waitFor();
await page.getByText('调整匹配范围',{exact:true}).click();await page.getByRole('button',{name:'添加流程节点',exact:true}).click();assert.equal(await page.locator('[data-scope-row]').count(),2);
await page.getByLabel('第2行适用流程',{exact:true}).selectOption('试产订单更改评审');await page.getByLabel('第2行触发节点',{exact:true}).selectOption({index:1});
await page.getByRole('button',{name:'删除第2行',exact:true}).click();assert.equal(await page.locator('[data-scope-row]').count(),1);
await page.getByLabel('文件名日期依据',{exact:true}).selectOption('receivedAt');await page.getByLabel('收件人',{exact:true}).fill('orders@example.test');await page.getByLabel('邮件主题前缀',{exact:true}).fill('【未保存预览】');