进行了一些小修复

This commit is contained in:
2026-08-26 21:59:47 +08:00
parent 6eb189ca88
commit 1d073ea293
8 changed files with 15 additions and 57 deletions
@@ -498,6 +498,7 @@ test('single post more menu has one accessible runtime and an in-flow author anc
const article = read('assets/js/core/article.js');
const components = read('inc/helpers/aksrt-single-components.php');
const single = read('inc/helpers/aksrt-single.php');
const singleRender = read('inc/helpers/aksrt-single-render.php');
const authorBar = read('templates/parts/single-author-bar.php');
const styles = read('assets/css/frontend/single-post/author-actions.css');
@@ -516,6 +517,8 @@ test('single post more menu has one accessible runtime and an in-flow author anc
assert.doesNotMatch(components, /\$direction/);
assert.match(authorBar, /class="single-meta-row"/);
assert.doesNotMatch(authorBar, /single-metabox abs-right/);
assert.match(singleRender, /'meta_html'\s*=>\s*\(string\) \(\$ctx\['meta_box_html'\] \?\? ''\)/);
assert.doesNotMatch(singleRender, /cover-meta|str_replace\('single-metabox'/);
assert.match(styles, /\.single-meta-row > \.single-metabox\s*\{[^}]*position:\s*relative;[^}]*transform:\s*none;/s);
assert.match(styles, /\.post-drop-meta__menu\s*\{[^}]*position:\s*absolute;[^}]*right:\s*0;/s);
});