test: align tally permission total

This commit is contained in:
2026-09-03 19:41:25 +08:00
parent 2063d29d16
commit 8b2c2b32b2
2 changed files with 2 additions and 2 deletions
@@ -104,7 +104,7 @@ export async function run(context) {
tallyCodes.has('platform:firstleg:inbound:loading:view')
&& tallyCodes.has('platform:firstleg:inbound:loading:edit')
&& tallyCodes.has('platform:firstleg:pda:review')
&& tallyCodes.size === 28
&& tallyCodes.size === 27
&& PHASE4_READ_CODES.every((code) => tallyCodes.has(code))
&& PHASE5_TALLY_CODES.every((code) => tallyCodes.has(code))
&& !tallyCodes.has('platform:firstleg:inbound:loading:complete')
@@ -27,7 +27,7 @@ test('warehouse operator and tally use the exact phase-four and phase-five permi
assert.match(iamSql, new RegExp(`'WAREHOUSE_TALLY','${code}'`))
}
assert.match(acceptance, /operatorCodes\.size === 29/)
assert.match(acceptance, /tallyCodes\.size === 28/)
assert.match(acceptance, /tallyCodes\.size === 27/)
assert.match(acceptance, /PHASE4_WRITE_SUFFIXES/)
assert.match(iamSql, /assert_phase4_warehouse_role_minimum/)
assert.match(iamSql, /permission_code REGEXP ':\(create\|edit\|status\|export\|adjust\|delete\|review\)\$'/)