修复了一些问题
This commit is contained in:
@@ -88,12 +88,13 @@ test('tabs, pagination, actions, and detail all replace DOM fragments', () => {
|
||||
assert.doesNotMatch(script, /pushState\([^\n]+detail/);
|
||||
});
|
||||
|
||||
test('message detail does not expose a related-content button or target link', () => {
|
||||
test('message detail exposes neither internal type labels nor a related-content link', () => {
|
||||
const center = read('inc/modules/message-center.php');
|
||||
const detailStart = center.indexOf('function aksrt_render_message_center_detail');
|
||||
const detailEnd = center.indexOf("add_action('wp_ajax_aksrt_load_message_center'", detailStart);
|
||||
const detail = center.slice(detailStart, detailEnd);
|
||||
|
||||
assert.doesNotMatch(detail, /aksrt_notification_type_label/);
|
||||
assert.doesNotMatch(detail, /查看相关内容|message-detail__primary|target_url|\['url'\]/);
|
||||
assert.doesNotMatch(detail, /<a\s/i);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user