Commit 81fc22d47b

81fc22d47b7005d2eb80558399efbec4af246e44

parent: 988289d1b9

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-22 22:31 UTC

live suite: scroll the preview clear of the keyboard before the screenshot

Layout: unified · split

gitbayUITests/LiveSmokeUITests.swift +6 −1
@@ -1949,7 +1949,12 @@ extension LiveSmokeUITests {
19491949
19501950 // Kept on success too: this is how the preview's look is checked
19511951 // in light and dark without signing a simulator in by hand.
1952 for _ in 0..<3 where !rendered.isHittable { app.swipeUp() }
1952 // isHittable is true behind the keyboard, which is its own window;
1953 // compare frames so the screenshot shows the rendering.
1954 let keyboard = app.keyboards.firstMatch
1955 for _ in 0..<3 where keyboard.exists && rendered.frame.maxY > keyboard.frame.minY {
1956 app.swipeUp()
1957 }
19531958 let shot = XCTAttachment(screenshot: app.screenshot())
19541959 shot.name = "markup preview"
19551960 shot.lifetime = .keepAlways