进行了一些小修复

This commit is contained in:
2026-08-26 22:23:52 +08:00
parent 1d073ea293
commit b77926388f
7 changed files with 299 additions and 129 deletions
@@ -22,6 +22,20 @@ test('paid article and sidebar widget use the Zibll purchase-card DOM', () => {
assert.match(pay, /pay-tag abs-center/);
assert.match(pay, /price-box/);
assert.match(pay, /vip-price-buts but-average inline/);
assert.match(pay, /function aksrt_get_show_pay_price_html/);
assert.match(pay, /function aksrt_get_posts_vip_price/);
assert.match(pay, /get_payment_vip_settings/);
assert.match(pay, /\['img_icon'\]/);
assert.match(pay, /signin-loader/);
assert.match(pay, /pay-vip/);
assert.match(pay, /vip-level/);
assert.match(pay, /免费/);
assert.match(pay, /original-price/);
assert.match(pay, /promotion_tag/);
assert.doesNotMatch(pay, /\$vip_minor > 0/);
assert.doesNotMatch(pay, /\$vip_items/);
assert.doesNotMatch(pay, /wp_login_url\(get_permalink\(\$post\)\)/);
assert.doesNotMatch(pay, /aksrt_get_user_center_tab_url\('vip'\)/);
assert.match(pay, /cashier-link/);
assert.match(pay, /function aksrt_get_paid_box_html/);
assert.match(pay, /pay-box zib-widget paid-box order-type-/);
@@ -51,6 +65,8 @@ test('the purchase card owns one direct stylesheet and no retired paywall path',
assert.match(assets, /assets\/css\/frontend\/pay-box\.css|\'pay-box\'/);
assert.match(shortcodes, /return aksrt_get_paywall_html\(\$post, \['message' => \$message\]\);/);
assert.match(css, /\.zib-widget\.pay-box/);
assert.match(css, /\.pay-box \.pay-vip-level-icon/);
assert.match(css, /\.pay-box \.pay-vip-exclusive/);
assert.doesNotMatch(css, /@media/);
assert.match(publicCss, /\.pay-box\.pay-widget \.vip-price/);
assert.match(publicCss, /\.pay-flexbox\s*\{\s*flex-wrap:\s*wrap;/);
@@ -521,6 +521,7 @@ test('single post more menu has one accessible runtime and an in-flow author anc
assert.doesNotMatch(singleRender, /cover-meta|str_replace\('single-metabox'/);
assert.match(styles, /\.single-meta-row > \.single-metabox\s*\{[^}]*position:\s*relative;[^}]*transform:\s*none;/s);
assert.match(styles, /\.post-drop-meta__menu\s*\{[^}]*position:\s*absolute;[^}]*right:\s*0;/s);
assert.match(styles, /\.article-header:has\(\.post-drop-meta\.is-open\)\s*\{[^}]*z-index:\s*30;/s);
});
test('single post has no word-count or estimated-reading-time chain', () => {