优化(半自动履约): 精简虎牙扫码与绑定确认流程

This commit is contained in:
yml
2026-11-20 17:44:31 +08:00
parent ac004fc442
commit 0982993a6d
9 changed files with 364 additions and 353 deletions
@@ -34,17 +34,17 @@ test('客户履约页必须覆盖 body 320px 最小宽度并使用 480px 移动
)
})
test('客户履约页固定宽度弹窗必须收进手机视口', async () => {
test('虎牙验证弹窗必须收进手机视口', async () => {
const [page, huya, css] = await Promise.all([
readFile(source('pages/customer-fulfillment/CustomerFulfillmentPage.tsx'), 'utf8'),
readFile(source('pages/customer-fulfillment/HuyaChallengeModal.tsx'), 'utf8'),
readFile(source('styles/customer/mobile.css'), 'utf8'),
])
assert.match(page, /className="customer-binding-modal"/)
assert.ok(!page.includes('customer-binding-modal'))
assert.match(huya, /className="customer-huya-challenge-modal"/)
assert.match(
css,
/\.customer-binding-modal,\s*\.customer-huya-challenge-modal\s*\{[^}]*width:\s*calc\(100vw - 24px\)\s*!important/s,
/\.customer-huya-challenge-modal\s*\{[^}]*width:\s*calc\(100vw - 24px\)\s*!important/s,
)
})