"""Post-B2: notifications.in_app must not silently match the unsupported
recipient-inbox product-surface candidate (13A-119).

Full exhibit: docs/audits/POST_B2_PRODUCT_SURFACE_CANDIDATES.md
"""

from src.domain.app_blocks.planner import _wants_in_app_notifications


def test_admitted_in_app_notification_staff_table_still_matches():
    """13A-082/mixed (admitted, gold includes notifications.in_app)."""
    text = (
        "customer records plus an in-app notification staff table. employees "
        "can inspect stored notifications; no recipient inbox, bell or "
        "delivery automation requested."
    )
    assert _wants_in_app_notifications(text) is True


def test_recipient_inbox_candidate_does_not_match_admitted_capability():
    """13A-119 (admission_required, gold empty): a customer-facing recipient
    inbox with a bell/unread-count is a different, unsupported surface from
    the staff-admin notifications.in_app table -- it must not silently
    resolve to it. See POST_B2_PRODUCT_SURFACE_CANDIDATES.md."""
    text = (
        "build a customer-facing notification inbox with unread counts and "
        "a bell. we need recipient-specific notifications, not a staff "
        "records table."
    )
    assert _wants_in_app_notifications(text) is False
