Skip to content

Commit c5b1714

Browse files
thymikeeclaude
andcommitted
test(apple-runner): pin both sides of the floating-bar back bound
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 143a558 commit c5b1714

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+NavigationTests.swift‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,19 @@ extension RunnerTests {
7474
}
7575

7676
func testTopNavigationBackCandidateBoundsSystemBackButtonToUpperWindow() {
77+
// 40% of 932 is 372.8; the classic band ends at 180, so only the floating-bar bound decides.
7778
let window = CGRect(x: 0, y: 0, width: 430, height: 932)
7879

80+
XCTAssertTrue(
81+
Self.isTopNavigationBackCandidateFrame(
82+
CGRect(x: 20, y: 348, width: 44, height: 44),
83+
in: window,
84+
identifier: "BackButton"
85+
)
86+
)
7987
XCTAssertFalse(
8088
Self.isTopNavigationBackCandidateFrame(
81-
CGRect(x: 20, y: 760, width: 72, height: 44),
89+
CGRect(x: 20, y: 356, width: 44, height: 44),
8290
in: window,
8391
identifier: "BackButton"
8492
)

0 commit comments

Comments
 (0)