Push Notification Live Activity Redundancy
Nucleic-Session: 73687ED9-C11C-438C-832B-979332B73893 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user