This commit is contained in:
2026-08-12 19:30:17 +08:00
parent 71b3361361
commit 9999f3f26b
4 changed files with 7 additions and 2 deletions
@@ -16,6 +16,8 @@ test('does not accept browser-selected customer or user scope in the API boundar
assert.doesNotMatch(source, /tenantId|customerId|merchantId|userId/)
assert.match(source, /merchant\/v1\/notifications/)
assert.match(source, /unread-count/)
assert.match(source, /notifications\/\$\{encodeURIComponent\(id\)\}/)
assert.match(source, /notifications\/\$\{encodeURIComponent\(id\)\}\/read/)
assert.match(source, /read-all/)
assert.match(source, /category: query\.type/)
assert.match(source, /method: 'PUT'/)
@@ -31,4 +33,6 @@ test('keeps customer message actions first and covers the requested local states
assert.match(source, /标为已读/)
assert.match(source, /state-panel--error/)
assert.match(source, /暂无消息/)
assert.doesNotMatch(source, /清空已读|删除消息/)
assert.match(source, /Promise\.all\(\[load\(\), notifications\.refreshUnreadCount\(\)\]\)/)
})