Push Notification Live Activity Redundancy

Nucleic-Session: 73687ED9-C11C-438C-832B-979332B73893
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-06 22:09:08 -07:00
co-authored by nucleic
parent a186e34d06
commit 6b34b8103e
@@ -67,6 +67,13 @@ import Testing
summary("run", status: .running, firstApprovalID: "ap-1"),
]))
#expect(running.lines.first?.approvalID == nil)
// An AskUserQuestion block (pendingQuestionCount set) is excluded from inline resolution
// it needs an answer selection the glance can't collect, so the row deep-links to the app.
let question = try #require(LiveActivitySnapshot.build(from: [
summary("q", status: .awaitingApproval, approvals: 1, questions: 2, firstApprovalID: "ap-q"),
]))
#expect(question.lines.first?.approvalID == nil)
}
@Test func buildOrdersAttentionFirstAndAggregates() throws {