test(report): match the dispatched action-field contract in the process form
This commit is contained in:
1 parent
9cc9ff6d52
commit
044830b58a
1 file changed
+4
-2
@@ -164,8 +164,10 @@ test('native ban page mirrors the reference theme layout', () => {
|
|||||||
}
|
}
|
||||||
// 处理表单必须携带隐藏 action 字段:admin-post.php 靠它触发
|
// 处理表单必须携带隐藏 action 字段:admin-post.php 靠它触发
|
||||||
// admin_post_{action} 钩子,缺失时 WordPress 不输出任何内容(白屏)。
|
// admin_post_{action} 钩子,缺失时 WordPress 不输出任何内容(白屏)。
|
||||||
assert.match(tickets, /name="action" value="aksrt_users_update_report"/)
|
// value 按工单类型分发(report → update_report,appeal → process_appeal)。
|
||||||
assert.match(tickets, /name="action" value="aksrt_users_process_appeal"/)
|
assert.match(tickets, /name="action" value="' \. esc_attr\(\$kind === 'report' \? 'aksrt_users_update_report' : 'aksrt_users_process_appeal'\)/)
|
||||||
|
assert.match(usersMenus, /admin_post_aksrt_users_update_report/)
|
||||||
|
assert.match(usersMenus, /admin_post_aksrt_users_process_appeal/)
|
||||||
|
|
||||||
// 分页对齐参考主题 zibpay_admin_pagenavi(每页 20 条)
|
// 分页对齐参考主题 zibpay_admin_pagenavi(每页 20 条)
|
||||||
assert.match(tickets, /TICKETS_PER_PAGE = 20/)
|
assert.match(tickets, /TICKETS_PER_PAGE = 20/)
|
||||||
|
|||||||
Reference in new issue
Block a user