This commit is contained in:
2026-09-01 11:38:45 +08:00
parent 42262e5705
commit 619edfb575
3 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ const page = await readFile(new URL('../pages/picking/picking.vue', import.meta.
test('saving a seal is single-flight and submits the pending photo through the atomic evidence command', () => {
assert.match(page, /:disabled="sealSaving \|\| !sealReadyToSave"/)
assert.match(page, /sealSaving \? '保存中…' : '保存封签'/)
assert.match(page, /sealSaving \? '上传中…' : '保存并上传'/)
assert.match(page, /async saveSealNo\(\) \{[\s\S]*?if \(this\.sealSaving\) return/)
assert.match(page, /find\(\(item\) => item\.localPath && !item\.id\)/)
assert.match(page, /await this\.queueEvidenceUpload\('SEAL', current\.localPath, String\(this\.sealNo\)\.trim\(\)\)/)