进行了一些小修复

This commit is contained in:
2026-08-26 18:46:15 +08:00
parent ad26feaaee
commit 5222349c85
3 changed files with 7 additions and 15 deletions
@@ -36,6 +36,7 @@ test('front submit follows the reference newposts shell and cards', () => {
const terms = read('templates/parts/submit/sidebar-terms.php');
const pay = read('templates/parts/submit/sidebar-pay.php');
const submit = read('templates/parts/submit/sidebar-submit.php');
const submitJs = read('assets/js/front-submit.js');
assert.match(page, /content-wrap newposts-wrap/);
assert.match(page, /class="content-layout"/);
@@ -43,6 +44,10 @@ test('front submit follows the reference newposts shell and cards', () => {
assert.match(main, /zib-widget full-widget-sm editor-main-box/);
assert.match(main, /relative newposts-title/);
assert.match(terms, /newpost-cat-drop drop-select dropdown dependency-box/);
assert.match(terms, /data-toggle-class="open" data-target="\.newpost-cat-drop"/);
assert.match(terms, /aksrt_submit_render_term_checks\(\$ctx\['categories'\], array_map\('intval', \$ctx\['current_cats'\]\), 'category'\)/);
assert.doesNotMatch(terms, /aria-expanded=/);
assert.doesNotMatch(submitJs, /bindDropSelect|term-select-box \[data-toggle-class/);
assert.match(pay, /zib-widget dependency-box mb10-sm newpost-pay-box/);
assert.match(pay, /pay-dawnload-edit/);
assert.match(submit, /separator muted-3-color theme-box/);