Skip to content

Enable more ItemsRepeater tests #8261

Open

Description

@MartinZikmund

What would you like to be added:

Re-enable ignored ItemsRepeater tests

Why is this needed:

Improve stability of the control.

For which Platform:

All

Tests that require further work

  • ViewportTests.ValidateNoScrollingSurfaceScenario - this test is currently adjusted with Uno-specific changes, but it does properly pass on UWP (even within our Samples app. The problem is that on UWP, the measuring phase occurs twice while in our case only once.
  • ViewportTests - some tests are commented out because of the missing support for ScrollView and ScrollPresenter from WinUI
  • ItemTemplateTests - all tests are adjusted to WatForIdle after Content.UpdateLayout() - this is currently needed as EffectiveViewport update does not occur synchronously during UpdateLayout() call, but only after, which means items would not otherwise be realized yet.
  • ItemTemplateTests.VerifyNullTemplateGivesMeaningfullError - exception thrown during UpdateLayout does not bubble up - as it gets masked by Uno as recoverable exception.
  • InspectingDataSourceTests.ValidateSwitchingItemsSourceRefreshesElementsVirtualLayout has additional waiting added, as the test did not pass in its original form on Android (the layout did not happen synchronously during the first UpdateLayout call).
  • InspectingDataSourceTests.VerifyCallingResetMultipleTimesOnUniqueIdItemsSource has additional waiting added, as the test did not pass in its original form on iOS (the layout did not happen synchronously during the UpdateLayout call).
  • RepeaterFocusTests.ValidateTabNavigation required additional waits to make sure items are rendered (see required changes here 956d79e)
  • ValidateMappingAndAutoRecycling in LayoutTests
  • VerifyStackLayoutAlignment itemsRepeaterOriginPoint.X is returning 0 at all times with Uno targets

Activity

  1. added
    kind/enhancement
    project/items 🧾
    difficulty/challenging 🤯
    on Mar 7, 2022
  2. linked a pull request that will close this issueEnable `RepeaterTests`: Episode II #9196on Jul 3, 2022
  3. added
    area/tests 🧪
    low-hanging-🍒
    on Jul 24, 2023
  4. removed their assignment
    on Jul 24, 2023
  5. Youssef1313 commented on Mar 12, 2024

    @Youssef1313
    Member
    • ValidateNoScrollingSurfaceScenario will be fixed in lifecycle PR fix: Align Loading/Loaded events with WinUI #14936 (Skia/Wasm)
    • Tests related to ScrollView and ScrollPresenter are added back in test: Enable ScrollView-related IR tests #15860. They are 3 tests, only one of them is currently passing, and the other two are ignored.
    • ItemTemplateTests may be fixed in lifecycle, but not yet validated. At least, lifecycle will have to be the first step for it.
    • VerifyNullTemplateGivesMeaningfullError is actually passing (at least on Skia)
  6. MartinZikmund commented on Apr 8, 2026

    @MartinZikmund
    MemberAuthor

    Repro generator

    This issue was classified as not reproducible with a code sample or test.

    Reason: Enhancement to enable more ItemsRepeater tests.

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 🧪difficulty/challenging 🤯epickind/enhancementlow-hanging-🍒no-reproproject/items 🧾

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions