修复(斗鱼领取): 资料阶段禁止进入二维码紧凑布局
This commit is contained in:
@@ -29,13 +29,15 @@ test('斗鱼资料提交按钮在手机端保持可见且页面可滚动', async
|
||||
])
|
||||
|
||||
assert.ok(page.includes('customer-douyu-submit-bar'))
|
||||
assert.match(page, /profile=\{needsProfile\}/)
|
||||
assert.match(page, /compact=\{Boolean\(\s*!needsProfile\s*&&/s)
|
||||
assert.match(
|
||||
css,
|
||||
/\.customer-auth-page\.is-douyu:not\(\.is-compact\)\s*\{[^}]*min-height:\s*100dvh;[^}]*overflow-y:\s*visible/s,
|
||||
/\.customer-auth-page\.is-douyu\.is-profile\s*\{[^}]*min-height:\s*100dvh;[^}]*overflow:\s*visible/s,
|
||||
)
|
||||
assert.match(
|
||||
css,
|
||||
/\.customer-auth-page\.is-douyu:not\(\.is-compact\) \.customer-douyu-submit-bar\s*\{[^}]*position:\s*sticky;[^}]*bottom:\s*0;[^}]*env\(safe-area-inset-bottom\)/s,
|
||||
/\.customer-auth-page\.is-douyu\.is-profile \.customer-douyu-submit-bar\s*\{[^}]*position:\s*fixed;[^}]*bottom:\s*0;[^}]*env\(safe-area-inset-bottom\)/s,
|
||||
)
|
||||
assert.match(
|
||||
css,
|
||||
|
||||
Reference in New Issue
Block a user