进行了一些小修复
This commit is contained in:
@@ -43,7 +43,8 @@ test('front submit follows the reference newposts shell and cards', () => {
|
||||
|
||||
assert.match(page, /content-wrap newposts-wrap/);
|
||||
assert.match(page, /class="content-layout"/);
|
||||
assert.match(page, /class="sidebar show-sidebar"/);
|
||||
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(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/);
|
||||
@@ -58,10 +59,11 @@ 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%;/);
|
||||
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(mobileSubmitCss, /body \.newposts-wrap\s*{[^}]*float:\s*none;/);
|
||||
assert.doesNotMatch(submitCss, /\.newposts-wrap\s*>\s*\.(?:content-layout|sidebar)/);
|
||||
assert.doesNotMatch(submitCss, /\.newposts-wrap \.new-posts-submit/);
|
||||
});
|
||||
|
||||
test('front submit paid resources use the reference modal editor and compact list', () => {
|
||||
|
||||
Reference in New Issue
Block a user