feat: complete workflow recovery and safe administration

This commit is contained in:
abaishu0730 committed 2026-10-21 12:30:11 +08:00
1 parent 1148aa6f14
commit 69583e8c33
46 files changed
+756 -120

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ test('editing while a trial is pending invalidates its output and failed saves p
test('saved state remains the clean baseline when the following list refresh fails',{timeout:60000},async t=>{
const {page,runtime}=await setup(t);await page.getByLabel('规则名称',{exact:true}).fill('已保存但刷新失败');
await page.route('**/api/order-rules',route=>route.fulfill({status:503,json:{error:'列表暂不可用'}}));
await page.route('**/api/order-rules?view=summary',route=>route.fulfill({status:503,json:{error:'列表暂不可用'}}));
await page.getByRole('button',{name:'保存草稿',exact:true}).click();await page.getByText(/规则草稿已保存。 刷新失败/).waitFor();
assert.equal(runtime.orderRules.get('rules','bs-change').draft.name,'已保存但刷新失败');assert.equal(await page.getByLabel('规则名称',{exact:true}).inputValue(),'已保存但刷新失败');
await page.getByLabel('规则名称',{exact:true}).dispatchEvent('input');