test: stabilize Human Gate recovery journey
Some checks failed
CI / lint (pull_request) Successful in 3m52s
CI / build-release (pull_request) Successful in 6s
CI / browser-journey (pull_request) Failing after 7m13s
CI / release-candidate (pull_request) Has been skipped

This commit is contained in:
timmy 2026-08-26 22:25:00 +00:00
parent b303683ba1
commit a77a73a269

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)