优化(半自动履约): 精简虎牙扫码与绑定确认流程
This commit is contained in:
@@ -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,
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user