Skip to content

test: TextBox_Readonly, PasswordBox_RevealInScrollViewer and FlyoutTest_Target are very flaky on iOS #13095

Closed as not planned

Description

@ramezgerges

The error in PasswordBox_RevealInScrollViewer is:

ImageAssert.AreEqual @ line 291
pixelTolerance: No color tolerance
expected: initial (PasswordBox_RevealInScrollViewer_initial.png 2048x2732) in {X=832,Y=1378,Width=100,Height=84}
actual  : result (PasswordBox_RevealInScrollViewer_result.png 2048x2732) in {X=832,Y=1378,Width=100,Height=84}

initial:
27,0: expected: [859,1378] FFFFFFFF | actual: [859,1378] FFFEFEFE
a tolerance of 1 [Exclusive] would be required for this test to pass.
Current: No color tolerance


With expectedRect:
{X=832,Y=1378,Width=100,Height=84}
With actualRect:
{X=832,Y=1378,Width=100,Height=84}
With expectedToActualScale:
1


   at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.CollectingAssertionStrategy.ThrowIfAny(IDictionary`2 context)
   at SamplesApp.UITests.TestFramework.ImageAssert.AreEqualImpl(ScreenshotInfo expected, Rectangle expectedRect, ScreenshotInfo actual, PlatformBitmap actualBitmap, Rectangle actualRect, Double expectedToActualScale, PixelTolerance tolerance, Int32 line) in /Users/runner/work/1/s/src/SamplesApp/SamplesApp.UITests/TestFramework/ImageAssert.cs:line 131
   at SamplesApp.UITests.TestFramework.ImageAssert.AreEqualImpl(ScreenshotInfo expected, Rectangle expectedRect, ScreenshotInfo actual, Rectangle actualRect, Double expectedToActualScale, PixelTolerance tolerance, Int32 line) in /Users/runner/work/1/s/src/SamplesApp/SamplesApp.UITests/TestFramework/ImageAssert.cs:line 100
   at SamplesApp.UITests.TestFramework.ImageAssert.AreEqual(ScreenshotInfo expected, ScreenshotInfo actual, Nullable`1 rect, Double expectedToActualScale, PixelTolerance tolerance, Int32 line) in /Users/runner/work/1/s/src/SamplesApp/SamplesApp.UITests/TestFramework/ImageAssert.cs:line 42
   at SamplesApp.UITests.Windows_UI_Xaml_Controls.TextBoxTests.TextBoxTests.PasswordBox_RevealInScrollViewer() in /Users/runner/work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml_Controls/TextBoxTests/TextBoxTests.cs:line 291

The error in TextBox_ReadOnly is:

Expected: True
But was:  False



   at SamplesApp.UITests.Windows_UI_Xaml_Controls.TextBoxTests.TextBoxTests.TextBox_Readonly() in /Users/runner/work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml_Controls/TextBoxTests/TextBoxTests.cs:line 264
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
   at NUnit.Framework.Internal.Commands.DelegatingTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)

1)    at SamplesApp.UITests.Windows_UI_Xaml_Controls.TextBoxTests.TextBoxTests.TextBox_Readonly() in /Users/runner/work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml_Controls/TextBoxTests/TextBoxTests.cs:line 264
   at System

The error in FlyoutTest_Target is:

System.Exception : Error while performing WaitForElement(Marked("innerContent"), "Timed out waiting for element innerContent after tapping target1", null, null, null)
----> System.TimeoutException : Timed out waiting for element innerContent after tapping target1


   at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)
   at Uno.UITest.Xamarin.XamarinApp.WaitForElement(Func`2 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout)
   at SamplesApp.UITests.Windows_UI_Xaml_Controls.FlyoutTests.Flyout_Tests.FlyoutTest_Target() in /Users/runner/work/1/s/src/SamplesApp/SamplesApp.UITests/Windows_UI_Xaml_Controls/FlyoutTests/UnoSamples_Tests.Flyout.cs:line 81
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--TimeoutException
   at Xamarin.UITest.iOS.iOSApp.<>c__DisplayClass58_0.<WaitForElement>b__0()
   at Xamarin.UITest.Utils.ErrorReporting.With[T](Func`1 func, Object[] args, String memberName)

Activity

  1. added
    triage/untriaged
    difficulty/tbd
    area/tests 🧪
    and removed
    triage/untriaged
    difficulty/tbd
    on Aug 3, 2023
  2. changed the title [-]test: TextBox_Readonly and PasswordBox_RevealInScrollViewer are very flaky on iOS[/-] [+]test: TextBox_Readonly, PasswordBox_RevealInScrollViewer and FlyoutTest_Target are very flaky on iOS[/+] on Aug 3, 2023
  3. added
    kind/bug
    project/input ⌨️
    on Aug 14, 2023
  4. added
    platform/ios 🍎
    good first issue
    on Sep 20, 2023
  5. github-actions commented on Aug 10, 2025

    @github-actions
    Contributor

    Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.

  6. added
    stale
    on Aug 10, 2025
  7. removed
    stale
    on Aug 11, 2025
  8. MartinZikmund commented on Aug 11, 2025

    @MartinZikmund
    Member

    This is specific for native

  9. github-actions commented on May 2, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.

  10. locked as resolved and limited conversation to collaborators on May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tests 🧪good first issuekind/bugplatform/ios 🍎project/input ⌨️

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions