优化
This commit is contained in:
@@ -5,6 +5,7 @@ import { readFile } from 'node:fs/promises'
|
||||
const source = await readFile(new URL('../api/pda-loading.js', import.meta.url), 'utf8')
|
||||
const http = await readFile(new URL('../api/http.js', import.meta.url), 'utf8')
|
||||
const page = await readFile(new URL('../pages/picking/picking.vue', import.meta.url), 'utf8')
|
||||
const styles = await readFile(new URL('../styles/pda.scss', import.meta.url), 'utf8')
|
||||
|
||||
test('sealed pallets use a single authoritative pallet command and prohibit partial picking', () => {
|
||||
assert.match(source, /pallets\/pick/)
|
||||
@@ -92,7 +93,10 @@ test('picking page exposes five evidence slots, retry and remote completion stat
|
||||
assert.match(page, /sourceType: \['camera'\]/)
|
||||
assert.doesNotMatch(page, /sourceType: \['camera', 'album'\]/)
|
||||
assert.match(page, /evidenceEntries\(slot\.type\)/)
|
||||
assert.match(page, /voidEvidencePhoto\(/)
|
||||
assert.match(page, /deleteEvidencePhoto\(/)
|
||||
assert.match(page, /class="evidence-delete-btn" aria-label="删除照片"[\s\S]*?>×<\/button>/)
|
||||
assert.doesNotMatch(page, />作废<\/button>/)
|
||||
assert.match(styles, /\.evidence-delete-btn\s*\{[^}]*width:\s*40px;[^}]*background:\s*transparent;/)
|
||||
assert.match(page, /evidenceComplete/)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user