test: stabilize Human Gate recovery journey
This commit is contained in:
parent
b303683ba1
commit
a77a73a269
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user