进行了一些小修复
This commit is contained in:
@@ -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/);
|
||||
|
||||
Reference in New Issue
Block a user