refactor: separate BPM scope discovery from Excel rule imports

This commit is contained in:
abaishu0730 committed 2026-10-23 17:00:30 +08:00
1 parent f936940ec0
commit d38625500e
28 files changed
+236 -143

No files matched your search

@@ -39,6 +39,6 @@ test('leaving distribution for mapping respects unsaved inputs and business sear
await page.getByLabel('收件人',{exact:true}).fill('keep@example.test');await page.getByLabel('搜索流程或节点',{exact:true}).fill('备损');await page.getByLabel('搜索流程或节点',{exact:true}).press('Enter');
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.locator('#fm-orderNo').waitFor({state:'attached'});
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();
assert.deepEqual(runtime.orderRules.all('field-mapping-drafts'),[]);
});