修复顶部头像浮层卡片

This commit is contained in:
2026-08-20 12:58:36 +08:00
parent 4d4baa9cec
commit 41a1b4f465
4 changed files with 328 additions and 3 deletions
@@ -147,14 +147,25 @@ test('mobile navigation is one setting-driven left right or top drawer', () => {
});
test('guest account member VIP and publish contracts share reference header DOM', () => {
const userboxCss = read('assets/css/frontend/header-userbox.css');
assert.match(header, /is_user_logged_in\(\)/);
assert.match(header, /sub-user-box/);
assert.match(header, /sub-user-box aksrt-header-userbox/);
assert.match(header, /signin-loader|signin/);
assert.match(header, /nav_user_pay_vip|nav_pay_vip/);
assert.match(header, /get_payment_vip_settings/);
assert.match(header, /nav_user_newposts_btn/);
assert.match(header, /nav_newposts/);
assert.match(header, /navbar-form navbar-right navbar-but/);
assert.match(header, /pay-vip/);
assert.match(scripts, /\$enqueue_module\('header-userbox'\)/);
assert.match(userboxCss, /\.aksrt-header-userbox \.user-info > \.avatar/);
assert.match(userboxCss, /\.aksrt-header-wallet/);
assert.match(userboxCss, /\.aksrt-header-checkin/);
assert.match(userboxCss, /\.aksrt-header-payvip__cta/);
assert.match(userboxCss, /\.header-user-href > a[\s\S]*?max-height: none/);
assert.match(userboxCss, /body\.dark-theme \.aksrt-header-checkin/);
assert.doesNotMatch(userboxCss, /user-dropdown|nav-user|html\.dark|theme-dark/);
assert.doesNotMatch(userboxCss, /--(?:main|muted|key)-|@import/);
});
test('the only menu metadata and Walker contract is Zibll', () => {