进行了一些小修复
This commit is contained in:
@@ -38,6 +38,7 @@ test('front submit follows the reference newposts shell and cards', () => {
|
||||
const submit = read('templates/parts/submit/sidebar-submit.php');
|
||||
const submitJs = read('assets/js/front-submit.js');
|
||||
const submitCss = read('assets/css/frontend/pages/submit.css');
|
||||
const publicCss = read('assets/css/build/public.min.css');
|
||||
const mainCss = read('assets/css/main.css');
|
||||
const mobileSubmitCss = submitCss.slice(submitCss.indexOf('@media (max-width: 991px)'));
|
||||
|
||||
@@ -45,6 +46,7 @@ test('front submit follows the reference newposts shell and cards', () => {
|
||||
assert.match(page, /class="content-layout"/);
|
||||
assert.match(page, /<\/div>\s*<\/div>\s*<div class="sidebar show-sidebar">/);
|
||||
assert.equal((page.match(/class="sidebar show-sidebar"/g) || []).length, 1);
|
||||
assert.match(page, /'aksrt-submit',[\s\S]*?\['aksrt-public'\]/);
|
||||
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/);
|
||||
@@ -59,9 +61,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(mainCss, /\.but-average > \.but\s*{[^}]*flex:\s*auto;/);
|
||||
assert.match(mainCss, /body \.sidebar\.show-sidebar\s*{[^}]*display:\s*unset;[^}]*width:\s*100%;[^}]*margin-left:\s*0;/);
|
||||
assert.match(publicCss, /\.but-average\s*>\s*\.but\s*{[^}]*flex:\s*auto/);
|
||||
assert.match(submitCss, /#aksrt-submit-form \.new-posts-submit\s*{[^}]*white-space:\s*nowrap;/);
|
||||
assert.match(mobileSubmitCss, /body \.newposts-wrap\s*{[^}]*float:\s*none;/);
|
||||
assert.match(mobileSubmitCss, /body \.sidebar\.show-sidebar\s*{[^}]*display:\s*unset;[^}]*width:\s*100%;[^}]*margin-left:\s*0;/);
|
||||
assert.doesNotMatch(submitCss, /\.newposts-wrap\s*>\s*\.(?:content-layout|sidebar)/);
|
||||
assert.doesNotMatch(submitCss, /\.newposts-wrap \.new-posts-submit/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user