test: accept queued or delivered blocker receipt
All checks were successful
CI / lint (pull_request) Successful in 2m33s
CI / build-release (pull_request) Successful in 6s
CI / browser-journey (pull_request) Successful in 3m5s
CI / release-candidate (pull_request) Has been skipped

This commit is contained in:
timmy 2026-08-19 06:46:05 +00:00
parent 950d52d147
commit b70a2fb607

View File

@ -574,10 +574,18 @@ def test_release_artifact_recovers_admitted_blocker_after_reload_and_opens_next_
})""")
assert state["today"] == ["issue:acme/mobile:42:"]
assert state["later"]["issue:acme/mobile:41:"].startswith("2099-08-19T09:00")
comments = [item for item in state["outbox"]["items"] if item["kind"] == "issue-comment"]
assert len(comments) == 1
assert comments[0]["number"] == 41
assert comments[0]["body"] == "Blocked waiting for the design owner"
queued_comments = [
item for item in state["outbox"]["items"] if item["kind"] == "issue-comment"
]
delivered_comments = [
{"number": number, "body": body}
for number, body in fake.comments
if number == 41 and body == "Blocked waiting for the design owner"
]
assert len(queued_comments) + len(delivered_comments) == 1
receipt = (queued_comments + delivered_comments)[0]
assert receipt["number"] == 41
assert receipt["body"] == "Blocked waiting for the design owner"
assert page.evaluate("document.documentElement.scrollWidth <= window.innerWidth")
assert browser_errors == []
browser.close()