fix(submit): keep sidebar visible on front submit page
This commit is contained in:
@@ -40,11 +40,13 @@ test('front submit follows the reference newposts shell and cards', () => {
|
||||
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 layout = read('inc/helpers/template-tags/site-layout.php');
|
||||
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, /<\/div>\s*<\/div>\s*<div class="sidebar show-sidebar">/);
|
||||
assert.match(layout, /if \(is_page_template\('templates\/pages\/page-submit\.php'\)\) \{\s*return true;/);
|
||||
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/);
|
||||
@@ -70,6 +72,11 @@ test('front submit follows the reference newposts shell and cards', () => {
|
||||
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/);
|
||||
// The form wraps both float columns; flow-root is its only layout job.
|
||||
assert.match(submitCss, /#aksrt-submit-form\s*{[^}]*display:\s*flow-root;/);
|
||||
assert.doesNotMatch(submitCss, /#aksrt-submit-form\s*{[^}]*display:\s*(?:grid|flex);/);
|
||||
// Submit chrome gating lives in footer.php; no dead filter/body-class duplicates.
|
||||
assert.doesNotMatch(read('src/Core/FrontSubmit.php'), /aksrt_floating_buttons_enabled|aksrt_footer_tabbar_enabled|aksrt-hide-float|aksrt-hide-tabbar|disable_chrome_on_submit/);
|
||||
});
|
||||
|
||||
test('front submit paid resources use the reference modal editor and compact list', () => {
|
||||
|
||||
Reference in New Issue
Block a user