refactor: separate notification distribution from field mapping

This commit is contained in:
abaishu0730 committed 2026-10-20 14:44:45 +08:00
1 parent 3748d05d96
commit c53da6f025
25 files changed
+773 -118

No files matched your search

+3 -3
View File
@@ -13,11 +13,11 @@ async function setup(t){
}
test('workbench searches categories, pairs rows and trials unsaved input before saved real evidence',{timeout:90000},async t=>{
const {page,runtime,captured}=await setup(t);
assert.match(await page.locator('#rule-field-coverage').innerText(),/表单版本 1.4.*已核验/);
assert.match(await page.locator('#rule-field-coverage').innerText(),/识别接口已变化.*重新验证/);
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:'选择对应的 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.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.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('【未保存预览】');