perf: streamline rule reads and unblock background discovery

This commit is contained in:
abaishu0730 committed 2026-10-26 16:13:15 +08:00
1 parent b14fa2f4d1
commit b17b975812
19 files changed
+263 -42

No files matched your search

@@ -39,7 +39,7 @@ test('rule editor exposes explicit test application while drafts remain editable
runtime.orderRules.snapshot=()=>({...original(),restrictedTest:run});
await page.goto(base+'/#order-rules');await login(page);
await page.getByRole('button',{name:'保存草稿',exact:true}).waitFor();
assert.match(await page.locator('#order-rules-panel').innerText(),/受限稳定性测试:15 \/ 15 类可用/);
assert.match(await page.locator('#order-rules-panel').innerText(),/受限稳定性测试:15 类纳入测试,15 类当前生效/);
assert.equal(await page.getByRole('button',{name:'应用到测试',exact:true}).isEnabled(),true);
assert.equal(await page.getByRole('button',{name:'保存草稿',exact:true}).isEnabled(),true);
await page.getByLabel('规则名称',{exact:true}).fill('仍可编辑的草稿');await page.getByRole('button',{name:'保存草稿',exact:true}).click();await page.getByText('规则草稿已保存。',{exact:true}).waitFor();