fix(first-leg): preserve edit commands and add versioned cancellation

This commit is contained in:
2026-10-02 21:36:10 +08:00
parent c06c105836
commit dae119a1e8
6 changed files with 321 additions and 20 deletions
@@ -35,7 +35,7 @@ test('opens order creation as a dedicated protected page while keeping draft edi
assert.match(editorShellSource, /\.editor-page-footer :deep\(\.editor-actions\) \{[^}]*justify-content: center;/)
})
test('exposes real list, draft, submit, and detail workflow entries without cancellation', () => {
test('exposes real list, draft, submit, and detail workflow entries', () => {
assert.match(source, /function openCreate\(\)/)
assert.match(source, /async function saveDraft\(\)/)
assert.match(source, /function submitOrder\(\)/)
@@ -45,7 +45,6 @@ test('exposes real list, draft, submit, and detail workflow entries without canc
assert.match(source, /Promise\.allSettled\(\[\s*orderPageRequest,\s*companyRequest/)
assert.match(source, /tenantStore\.loadCompanyContext\(\)/)
assert.match(source, /await store\.loadDetail\(orderId\)/)
assert.doesNotMatch(source, /cancelOrder|取消订单/)
})
test('returns edited submissions to the refreshed order list instead of opening detail', () => {