Skip to content

Commit 31c84fb

Browse files
committed
Delay iOS screenshots to allow UI to render
1 parent 960f1e7 commit 31c84fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/ios/tests/HelloCodenameOneUITests.swift.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ final class HelloCodenameOneUITests: XCTestCase {
3737
}
3838

3939
private func captureScreenshot(named name: String) throws {
40+
// Allow Codename One an extra moment to render before grabbing the frame.
41+
RunLoop.current.run(until: Date(timeIntervalSinceNow: 1.0))
4042
let shot = XCUIScreen.main.screenshot()
4143

4244
// Save into sandbox tmp (optional – mainly for local debugging)

0 commit comments

Comments
 (0)