修复了一些问题

This commit is contained in:
2026-08-25 18:34:17 +08:00
parent 3dbd196e06
commit ff521c9ad6
2 changed files with 4 additions and 0 deletions
@@ -26,6 +26,7 @@ test('notification icon positions map to their four render locations', () => {
const jsSchema = read('assets/admin/src/schema/sections/users/notifications.js');
const integration = read('src/Settings/Integration.php');
const header = read('inc/helpers/header/aksrt-header-navbar.php');
const headerStyles = read('assets/css/frontend/header-userbox.css');
const userCenter = read('inc/helpers/aksrt-user-center.php');
const userHome = read('templates/parts/user/author-hero.php');
@@ -39,6 +40,7 @@ test('notification icon positions map to their four render locations', () => {
assert.match(integration, /\['nav_menu', 'avatar_dropdown', 'user_center_header', 'user_home_header'\]/);
assert.match(header, /in_array\('nav_menu', \$positions, true\)/);
assert.match(header, /in_array\('avatar_dropdown', \$positions, true\)/);
assert.match(headerStyles, /\.aksrt-header-userbox \.user-info > \.abs-right \{[\s\S]*?top: 50%;[\s\S]*?transform: translateY\(-50%\);/);
assert.match(header, /aksrt-nav-icon aksrt-nav-notification/);
assert.match(header, /\$notification_but \. \$sign_but \. \$search_but/);
assert.match(userCenter, /in_array\('user_center_header'/);