test: stabilize full development acceptance

This commit is contained in:
2026-09-04 17:17:08 +08:00
parent 61b7b3fb02
commit 991bab9cb1
20 changed files with 155 additions and 87 deletions
@@ -4,8 +4,9 @@ import test from 'node:test'
const source = readFileSync(new URL('./admin-test-env-acceptance.mjs', import.meta.url), 'utf8')
test('admin acceptance phone fixture keeps more than ten generated customers distinct', () => {
assert.match(source, /slice\(-7\)\.padStart\(7, '0'\)/)
assert.match(source, /phoneSequence % 100/)
test('admin acceptance phone fixture resolves a currently available deterministic candidate', () => {
assert.match(source, /const seed = `\$\{this\.marker\}:\$\{this\.phoneSequence\}:\$\{attempt\}`/)
assert.match(source, /administrator-phone-availability\?phone=/)
assert.match(source, /attempt < 100/)
assert.doesNotMatch(source, /phoneSequence % 10\)/)
})