进行了一些小修复

This commit is contained in:
2026-08-26 20:00:31 +08:00
parent fbada8bd6a
commit 8111b17392
3 changed files with 10 additions and 12 deletions
@@ -39,10 +39,11 @@ test('front submit follows the reference newposts shell and cards', () => {
const submitJs = read('assets/js/front-submit.js');
const submitCss = read('assets/css/frontend/pages/submit.css');
const mainCss = read('assets/css/main.css');
const mobileSubmitCss = submitCss.slice(submitCss.indexOf('@media (max-width: 991px)'));
assert.match(page, /content-wrap newposts-wrap/);
assert.match(page, /class="content-layout"/);
assert.match(page, /class="sidebar"/);
assert.match(page, /class="sidebar show-sidebar"/);
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/);
@@ -57,6 +58,10 @@ test('front submit follows the reference newposts shell and cards', () => {
assert.match(pay, /pay-dawnload-edit/);
assert.match(submit, /separator muted-3-color theme-box/);
assert.match(submit, /new-posts-submit/);
assert.match(submitCss, /\.newposts-wrap \.new-posts-submit\s*{[^}]*display:\s*inline-flex;[^}]*white-space:\s*nowrap;/);
assert.doesNotMatch(submitCss, /\.newposts-wrap \.but-average\s*>\s*\*\s*{[^}]*flex:\s*1 1 0;/);
assert.match(mobileSubmitCss, /\.newposts-wrap\s*{[^}]*display:\s*block;/);
assert.match(mobileSubmitCss, /\.newposts-wrap > \.sidebar\s*{[^}]*width:\s*100%;/);
});
test('front submit paid resources use the reference modal editor and compact list', () => {