This commit is contained in:
2026-09-24 08:55:38 +08:00
parent 50dbbcaa6e
commit bc9fa0faa3
8 changed files with 107 additions and 15 deletions
+2 -1
View File
@@ -102,11 +102,12 @@ test('mixed relabel keeps SKU work open and return bulk also mounts pallet work'
assert.match(page, /<RelabelPalletWork v-if="taskTab === 'carton' \|\| isReturnBulk"/)
})
test('relabel list opens a row directly in execution and completion returns to the list', async () => {
test('relabel list confirms before starting a new task and completion returns to the list', async () => {
const page = await read('../src/pages/relabel/relabel.vue')
assert.doesNotMatch(page, /name="relabelTask"/)
assert.match(page, /@tap="openExecution\(item\)"/)
assert.match(page, /async openExecution\(item\)/)
assert.match(page, /const confirmed = await this\.confirmStartTask\(item\)[\s\S]*if \(!confirmed\) return[\s\S]*claimRelabelTask/)
assert.match(page, /relabelExecute&task=\$\{encodeURIComponent\(item\.relabelNo\)\}/)
assert.match(page, /当前账号正在执行 \$\{active\.relabelNo\}/)
assert.match(page, /v-if="showCurrent" class="detail-toolbar"[\s\S]*@tap="closeCurrent">\u2039 返回列表<\/button>/)