From fc2b45f90d847eebc291857304f81a9e0d90c46a Mon Sep 17 00:00:00 2001 From: Shai Almog <67850168+shai-almog@users.noreply.github.com> Date: Thu, 26 Feb 2026 19:15:42 +0200 Subject: [PATCH] Stabilize HelloCodenameOne orientation screenshot test --- .../hellocodenameone/tests/OrientationLockScreenshotTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/hellocodenameone/common/src/main/java/com/codenameone/examples/hellocodenameone/tests/OrientationLockScreenshotTest.java b/scripts/hellocodenameone/common/src/main/java/com/codenameone/examples/hellocodenameone/tests/OrientationLockScreenshotTest.java index 272a7b4564..c1c1796628 100644 --- a/scripts/hellocodenameone/common/src/main/java/com/codenameone/examples/hellocodenameone/tests/OrientationLockScreenshotTest.java +++ b/scripts/hellocodenameone/common/src/main/java/com/codenameone/examples/hellocodenameone/tests/OrientationLockScreenshotTest.java @@ -16,7 +16,7 @@ public boolean runTest() { @Override protected void onShowCompleted() { CN.lockOrientation(false); - UITimer.timer(300, false, this, () -> { + waitForOrientation(this, false, () -> { Cn1ssDeviceRunnerHelper.emitCurrentFormScreenshot("landscape"); CN.lockOrientation(true); waitForOrientation(this, true, OrientationLockScreenshotTest.this::done);