Recover Human Gate decisions after interrupted mobile responses #1447

Merged
timmy merged 3 commits from timmy/1446-recover-human-gate-decision into main 2026-08-26 23:05:33 +00:00
Showing only changes of commit a77a73a269 - Show all commits

View File

@ -148,12 +148,12 @@ def test_release_artifact_reopens_human_gates_with_one_fresh_mobile_snapshot(
page.reload(wait_until="networkidle")
page.evaluate("document.querySelector('#open-human-gates').click()")
expect(page.locator("#human-gates")).to_be_visible()
expect(page.locator("#human-gate-detail")).to_contain_text("Decision outcome unknown")
recover = page.locator("[data-gate-recover]")
recover.scroll_into_view_if_needed()
expect(recover).to_be_visible()
recover_bounds = recover.bounding_box()
assert recover_bounds and recover_bounds["height"] >= 44
recover_height = recover.evaluate("element => element.getBoundingClientRect().height")
assert recover_height >= 44
recover.click()
expect(page.locator("#human-gates-status")).to_contain_text("Decision saved")
expect(page.locator(".human-gate-decision-tray")).to_have_count(0)