Repository navigation
[release/10.0.1xx-sr11] [Android] Fix ArgumentOutOfRangeException when removing items from grouped CollectionView - #38482
Conversation
…ouped CollectionView (#38341) > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Details On Android, removing an item from a visible group in a grouped CollectionView using GridItemsLayout can cause an ArgumentOutOfRangeException. The issue occurs during RecyclerView's predictive layout. The spacing calculation uses an outdated item count, which can result in an invalid adapter position. **Regression PR:** #35782 ### Root Cause SpacingItemDecoration uses RecyclerView.State.ItemCount to determine the last item position. During item removal, state.ItemCount can still contain the previous item count while the adapter has already been updated. This causes the calculated position to be outside the current adapter range, which eventually results in an ArgumentOutOfRangeException. ### Description of Change On Android, updated SpacingItemDecoration to use consistent adapter state when calculating item positions and counts for SpanSizeLookup. The change ensures that the position and item count passed to SpanSizeLookup are obtained from the current adapter state, avoiding inconsistencies during CollectionView item updates. Added additional tests to cover item removal scenarios in a grouped CollectionView using GridItemsLayout and to verify that the collection updates correctly without throwing exceptions. ### Issues Fixed Fixes #38321 ### Screenshots | Before Issue Fix | After Issue Fix | |----------|----------| | <video width="300" height="600" src="https://github.com/user-attachments/assets/7d5e369f-127a-4a1e-a612-a10175f11286"> | <video width="300" height="600" src="https://github.com/user-attachments/assets/402a6790-45d3-40e3-9063-e3308eaca50b"> |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
This comment has been minimized.
This comment has been minimized.
MauiBot
left a comment
There was a problem hiding this comment.
AI Review Summary
@github-actions[bot] — new AI review results are available based on commit
2063e7c.
🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix
Gate Result: ✅ PASSED
Platform: ANDROID · Base: release/10.0.1xx-sr11 · Merge base: bf14c828
| Test | Without Fix (expect FAIL) | With Fix (expect PASS) |
|---|---|---|
🖥️ Issue38321 Issue38321 |
✅ FAIL — 1540s | ✅ PASS — 678s |
🔴 Without fix — 🖥️ Issue38321: FAIL ✅ · 1540s
Error-relevant lines (filtered from the build log):
at UITest.Appium.NUnit.UITestBase.UITestBaseTearDown() in /_/src/TestUtils/src/UITest.NUnit/UITestBase.cs:line 159
at UITest.Appium.NUnit.UITestBase.TestTearDown() in /_/src/TestUtils/src/UITest.NUnit/UITestBase.cs:line 45
🟢 With fix — 🖥️ Issue38321: PASS ✅ · 678s
(no coded error found; showing last 1200 chars)
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.8.2+699d445a1a (64-bit .NET 10.0.13)
[xUnit.net 00:00:00.12] Discovering: Controls.TestCases.Android.Tests
[xUnit.net 00:00:00.40] Discovered: Controls.TestCases.Android.Tests
NUnit Adapter 4.5.0.0: Test execution started
Running selected tests in /home/vsts/work/1/s/artifacts/bin/Controls.TestCases.Android.Tests/Debug/net10.0/Controls.TestCases.Android.Tests.dll
NUnit3TestExecutor discovered 1 of 1 NUnit test cases using Current Discovery mode, Non-Explicit run
>>>>> 09/12/2026 17:47:21 FixtureSetup for Issue38321(Android)
>>>>> 09/12/2026 17:47:24 GroupedCollectionViewRemovalsUseCurrentAdapterPositions Start
>>>>> 09/12/2026 17:47:31 GroupedCollectionViewRemovalsUseCurrentAdapterPositions Stop
Passed GroupedCollectionViewRemovalsUseCurrentAdapterPositions [7 s]
NUnit Adapter 4.5.0.0: Test execution complete
Results File: /home/vsts/work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue38321.trx
Test Run Successful.
Total tests: 1
Passed: 1
Total time: 21.4232 Seconds
>>> TRX_RESULT_FILE: /home/vsts/work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue38321.trx
📁 Fix files reverted (1 files)
src/Controls/src/Core/Handlers/Items/Android/SpacingItemDecoration.cs
📋 Pre-Flight — Context & Validation
PR #38482 Pre-Flight
Scope
- PR:
[release/10.0.1xx-sr11] [Android] Fix ArgumentOutOfRangeException when removing items from grouped CollectionView - Relationship: Backport of #38341 to
release/10.0.1xx-sr11; fixes #38321. - Materialized review range:
bf14c8283b..d29105ec14(d29105ec14is the local squashed review commit). - Platform: Android.
- Active implementation:
src/Controls/src/Core/Handlers/Items/Android/SpacingItemDecoration.cs.Items/Androidis the sole Android CollectionView handler. - Production modification boundary for alternatives:
src/Controls/src/Core/Handlers/Items/Android/SpacingItemDecoration.cs. The gate reports this as the only reverted fix file. The added Issue38321 UI-test files and unrelated servicing version metadata are context only.
Failure Mechanism
During RecyclerView predictive pre-layout after an in-place grouped item removal, RecyclerView.State.ItemCount can still describe the previous layout while the adapter already exposes the reduced live collection. SpacingItemDecoration.GetItemOffsets uses itemCount - 1 with GridLayoutManager.SpanSizeLookup.GetSpanGroupIndex. When that count is stale, the lookup asks the grouped adapter for an out-of-range position; ObservableGroupedSource.IsGroupHeader eventually indexes one group past the end and throws ArgumentOutOfRangeException.
The crash is specific to the grouped-grid path because the span lookup calls through GetItemViewType; an ungrouped adapter without a template selector does not dereference the source in the same way.
Submitted Fix
The PR obtains the current adapter, uses adapter.ItemCount instead of state.ItemCount, and rejects NoPosition or any child position outside the live adapter range before invoking the span lookup. This makes both the child position and final-position calculation use current adapter state.
The PR also adds an Android UI reproduction that removes the first, middle, and last visible item from the first group and verifies the collection remains responsive after each removal.
Validation Contract for Try-Fix Candidates
- Primary test:
pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue38321" - Mandatory regression tests: None. The recorded regression cross-reference found no labeled recent bug-fix PR touching the modified production file.
- Existing gate: Passed.
Issue38321failed without the fix and passed with it. Do not repeat gate verification and do not modifyPRAgent/gate/content.md. - Bound: Each candidate gets one implementation/test pass and at most one focused correction/retest.
Existing Approach to Avoid Repeating
Do not reproduce the submitted adapter-count synchronization approach: fetching parent.GetAdapter(), substituting adapter.ItemCount for state.ItemCount, and range-checking the adapter position. An alternative must use a different root-cause mechanism, such as deliberately bypassing edge-adjustment logic during predictive pre-layout, while preserving ordinary grid and linear spacing behavior.
Relevant Evidence
- #38321 identifies the regression as originating in the span-aware outer-edge calculation introduced for 10.0.100.
- The current diff changes four files: servicing version metadata, the one Android production file, and the two Issue38321 UI-test files.
- The recorded regression-risk scan is clean.
🔬 Code Review — Deep Analysis
Expert Code Review — PR #38482
Independent Assessment (code-first)
What this changes:
This PR updates Android SpacingItemDecoration.GetItemOffsets to compute item-count bounds from the live adapter (parent.GetAdapter().ItemCount) and to early-return when GetChildAdapterPosition(view) is invalid or outside current adapter bounds.
It also adds a regression repro page (Issue38321) and UI test coverage that performs sequential grouped-grid removals and validates continued UI responsiveness.
Inferred motivation:
Prevent ArgumentOutOfRangeException in grouped Android CollectionView grid scenarios during item removal, where pre-layout/recycler state can momentarily disagree with live adapter positions/count.
Dimension Coverage Applied
- CollectionView — Android (Items/)
- Performance-Critical Path
- Memory Leak Prevention
- Logic and Correctness (always active)
- Regression Prevention and Test Coverage (always active)
- Complexity Reduction (always active)
Validation Notes
- Full changed files were read in entirety.
- Relevant consumers/callers were read (
MauiRecyclerView,GroupableItemsViewAdapter,ItemsViewAdapter,GridLayoutSpanSizeLookup,ObservableGroupedSource). - Related history was checked for
SpacingItemDecorationand grouped adapter behavior. - Pre-flight and try-fix artifacts were read and reconciled as context only.
- Prior review surfaces checked:
- Top-level reviews: no error findings
- Inline comments: none
- Issue comments: no error findings
Reconciliation with PR Narrative / Context Files
- PR narrative claim (backport of #38341 for grouped removal crash) matches code-level behavior.
- Pre-flight root-cause analysis (state/adapter mismatch leading to out-of-range grouped lookup) is consistent with current fix mechanics.
- Try-fix candidate logs were context-only and did not alter submitted PR conclusions.
Blast Radius Assessment
- Runs for all instances: Yes, on Android
MauiRecyclerViewspacing decoration path for Items handlers. - Startup impact: No (runtime layout path only, not app init/startup wiring).
- Static/shared state added: No.
Failure-Mode Probing
- Grouped grid removal with stale pre-layout position/count: guarded by adapter-null and
position < 0 || position >= adapter.ItemCountearly return before span-group indexing; prevents out-of-range grouped source access. - Ungrouped/linear layouts: unchanged behavioral core; row/column boundary logic remains valid and uses same guarded adapter position.
- Handler lifecycle reconnect/disconnect: no new event subscriptions, delegates, or retained references introduced by this patch.
- Edge case (
itemCount == 0): now naturally handled by bounds guard (position >= itemCount) before terminal index usage.
External Output Contract
Not applicable (this PR does not classify external tool/CI output via regex/string token contracts).
Findings
No validated code defects found on added/modified submitted-PR lines.
CI Status
gh pr checks --requiredcould not run in this environment due unauthenticatedgh.- Anonymous commit check-run API for PR head (
2063e7c6e3d25dfca213d3f33b7653cbabb6be39) shows many requiredmaui-prchecks successful and multiple checks stillin_progress/queued, so CI is not yet fully complete.
Verdict
NEEDS_DISCUSSION
Confidence: low
Rationale: code-level review found no actionable defects and regression coverage for the reported scenario is present. CI is still in-progress/queued on the head commit, so this pass cannot conclude merge-ready status yet.
Actionable Feedback (for consolidated patch planning)
- No source changes required from this expert pass.
- Keep the adapter-based bounds guard pattern for Android grouped
CollectionViewspacing paths. - If follow-up hardening is desired, add one adjacent regression case that removes from a non-first group to broaden behavioral guard coverage (optional, not a blocker from this pass).
🛠️ Try-Fix — Analysis & Comparison
Try-Fix Aggregate (PR #38482)
Candidate 1
- Attempt path:
CustomAgentLogsTmp/PRState/38482/PRAgent/try-fix/attempt-1 - Narrative:
CustomAgentLogsTmp/PRState/38482/PRAgent/try-fix-1/content.md - Approach: bypass only pre-layout outer-edge/span-group trimming while preserving base spacing.
- Prior approach avoided: adapter-live-count synchronization (
parent.GetAdapter()+adapter.ItemCount+ adapter position range checks). - Files changed: none (blocked before edit)
- Result: Blocked
- Test command:
pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue38321" - Test result: not executed due baseline establishment failure.
- Inline self-review findings: 0 (
reviewer-findings.json)
Candidate 2
- Attempt path:
CustomAgentLogsTmp/PRState/38482/PRAgent/try-fix/attempt-2 - Narrative:
CustomAgentLogsTmp/PRState/38482/PRAgent/try-fix-2/content.md - Approach: directional inter-group spacing places the full scrolling-axis gap on each non-first group leading edge and always leaves the trailing edge at zero, eliminating the terminal span-group lookup.
- Prior approaches avoided: (1) the submitted PR live-adapter-count synchronization and current-position range guard; (2) candidate 1 pre-layout-only edge-adjustment bypass.
- Mechanism-level difference: trailing-edge correctness becomes structural and no longer requires
itemCount - 1; the same algorithm would run in normal and predictive passes without consulting live adapter count or bypassing pre-layout logic. - Files changed: none (blocked before edit)
- Result: Blocked
- Test command:
pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue38321" - Test result: not executed because baseline establishment failed.
- Inline self-review findings: 0 (
CustomAgentLogsTmp/PRState/38482/PRAgent/try-fix/attempt-2/reviewer-findings.json) - Failure:
EstablishBrokenBaseline.ps1rejected the same pre-existing dirty tracked worktree and created no.github/.baseline-state.json. No production edits were made. Exact mandatory restore ran and returnedNo baseline state found/Restored False. - Artifacts:
CustomAgentLogsTmp/PRState/38482/PRAgent/try-fix/attempt-2/
Final Status
Exactly two candidates total were attempted. Both were blocked before edits/tests by baseline establishment rejecting the pre-existing dirty tracked worktree. No further candidates will run. Candidate source changes were not left in the worktree; persisted attempt artifacts and narratives are the source of truth.
📝 PR Finalize — Recommended Title & Description
Assessment: ✏️ Recommend updating — the title is specific and accurate, but the description only identifies the backport and omits the root cause, submitted fix, regression coverage, and fixed issue.
Recommended title
[release/10.0.1xx-sr11] [Android] Fix ArgumentOutOfRangeException when removing items from grouped CollectionView
Recommended description
Backport of #38341 to release/10.0.1xx-sr11.
### Description of Change
During Android RecyclerView predictive pre-layout after an item is removed from a grouped `CollectionView`, `RecyclerView.State.ItemCount` can still reflect the previous layout while the adapter already exposes the reduced collection. `SpacingItemDecoration` could then request an out-of-range grouped adapter position while calculating span-group edge spacing, causing an `ArgumentOutOfRangeException`.
Use the live adapter item count for the spacing calculation and skip invalid or out-of-range child adapter positions before invoking the span lookup.
Add an Android UI regression test that removes the first, middle, and last items from a grouped grid and verifies that the collection remains responsive after each removal.
### Issues Fixed
Fixes #38321
### Platform
- Android
/cc @kubaflo @Vignesh-SF3580
🏁 Report — Final Recommendation
⚠️ Final Recommendation: REQUEST CHANGES
Winner: pr-plus-reviewer
The submitted Android fix is technically sound: it uses the live adapter count and rejects invalid adapter positions before grouped span lookup, directly addressing the stale RecyclerView.State.ItemCount failure mechanism. The trusted Gate passed, and the single expert review produced no inline defects. pr-plus-reviewer wins narrowly because it preserves that implementation while extending the regression scenario to a non-first group, and the required focused Android validation passed.
Comparative Ranking
| Rank | Candidate | Implementation and evidence | Result |
|---|---|---|---|
| 1 | pr-plus-reviewer |
Keeps the submitted production fix and adds a fourth UI action that removes the first item from the second group. Issue38321 built, deployed, and passed once in the required candidate sandbox (1/1 test). |
PASS — winner |
| 2 | pr |
Live-adapter item count plus invalid-position guard prevents stale predictive-layout positions from reaching grouped span lookup. Trusted Gate: tests fail without the fix and pass with it; expert review found no code defect. Coverage exercises first, middle, and last removals only in the first group. | PASS |
| 3 | try-fix-1 |
Proposed bypassing outer-edge/span-group adjustment only during predictive pre-layout. The baseline setup failed before any edit, so no candidate diff or test evidence exists. Its narrow pre-layout scope makes it less risky than candidate 2, but it remains unverified. | BLOCKED |
| 4 | try-fix-2 |
Proposed changing scrolling-axis spacing globally to directional leading-edge gaps, eliminating terminal span lookup. The baseline setup failed before any edit or test; the broader spacing-model change is also higher risk than the other approaches. | BLOCKED |
No candidate failed a regression test. Both try-fix candidates rank below the two passing candidates because they were neither implemented nor validated.
Expert Review Reconciliation
inline-findings.jsonis a valid empty JSON array; no actionable defect was found on a changed PR line.- The expert assessed the production fix as sound for grouped-grid removal, empty adapters, and invalid child positions.
- The only actionable hardening suggestion was adjacent coverage for removal from a non-first group. The winning candidate applies exactly that suggestion without changing production behavior.
- Expert confidence remained low only because PR-head CI was still in progress at review time; the supplied trusted Gate passed, and the focused candidate command also passed.
Decision
Request changes because the selected candidate is pr-plus-reviewer, not the raw submitted PR. The requested delta is limited to the validated second-group regression coverage in reviewer.patch; the submitted adapter-count synchronization fix itself should remain unchanged.
📱 UI Tests — CollectionView
Detected UI test categories: CollectionView
❌ Deep UI tests — 612 passed, 26 failed across 1 category on platform-pool agent (replaces in-process counts above).
🧪 UI Test Execution Results (deep, platform pool)
| Category | Tests | Snapshot diffs |
|---|---|---|
CollectionView |
612/638 (26 ❌) | 1 diff PNG |
🔍 AI analysis of failures — PR-related vs unrelated
🔍 AI-generated triage (GitHub Copilot CLI) — a heuristic judgement of whether each deep UI test failure is connected to this PR's changes. Verify before relying on it.
Likely PR-related: one or more failures appear connected to this PR's changes.
- ✗ PR-related — Android CollectionView scrolling (~26 tests): every failure is in the Android CollectionView
ScrollTosuite and times out waiting for the requested item to become visible, directly overlapping the modified Android item-decoration/layout path; the systematic, area-specific cluster outweighs the otherwise generic timeout signature.
Strongest signal: failures span grouped and ungrouped horizontal and vertical lists but remain entirely within the modified Android CollectionView area, indicating a shared layout/visibility regression rather than isolated Appium flakiness.
❌ CollectionView — 26 failed tests
VerifyScrollToByItemWithEndPositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyScrollToByItemWithEndPositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 2714
at System.RuntimeMethodHandle
...
VerifyGroupItemScrollToByIndexWithMakeVisiblePositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupItemScrollToByIndexWithMakeVisiblePositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 3240
at System.R
...
VerifyGroupIndexScrollToByIndexWithEndPositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupIndexScrollToByIndexWithEndPositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 3133
at System.Reflecti
...
VerifyScrollToByItemWithMakeVisiblePositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyScrollToByItemWithMakeVisiblePositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 2457
at System.RuntimeMeth
...
VerifyGroupItemScrollToByItemWithCenterPositionAndVerticalList_Potato
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupItemScrollToByItemWithCenterPositionAndVerticalList_Potato() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 2006
at System.Runtime
...
VerifyGroupIndexScrollToByIndexWithMakeVisiblePositionAndVerticalList_Apricot
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupIndexScrollToByIndexWithMakeVisiblePositionAndVerticalList_Apricot() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 1801
at System
...
VerifyScrollToByIndexWithEndPositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyScrollToByIndexWithEndPositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 2375
at System.RuntimeMethodHandl
...
VerifyGroupItemScrollToByIndexWithStartPositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupItemScrollToByIndexWithStartPositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 3344
at System.Runtime
...
VerifyScrollToByIndexWithStartPositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyScrollToByIndexWithStartPositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 2213
at System.RuntimeMethodHan
...
VerifyGroupItemScrollToByItemWithMakeVisiblePositionAndVerticalList_Apricot
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupItemScrollToByItemWithMakeVisiblePositionAndVerticalList_Apricot() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 1942
at System.R
...
VerifyGroupItemScrollToByIndexWithCenterPositionAndHorizontalList_Tomato
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupItemScrollToByIndexWithCenterPositionAndHorizontalList_Tomato() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 3452
at System.Runt
...
VerifyScrollToByItemWithCenterPositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyScrollToByItemWithCenterPositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 2627
at System.RuntimeMethodHan
...
VerifyGroupIndexScrollToByIndexWithStartPositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupIndexScrollToByIndexWithStartPositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 2917
at System.Runtim
...
VerifyScrollToByIndexWithCenterPositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyScrollToByIndexWithCenterPositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 2294
at System.RuntimeMethodHa
...
VerifyScrollToByIndexWithMakeVisiblePositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyScrollToByIndexWithMakeVisiblePositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 2136
at System.RuntimeMet
...
VerifyGroupIndexScrollToByIndexWithCenterPositionAndHorizontalList_Tomato
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupIndexScrollToByIndexWithCenterPositionAndHorizontalList_Tomato() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 3025
at System.Ref
...
VerifyGroupIndexScrollToByIndexWithStartPositionAndVerticalList_Carrot
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupIndexScrollToByIndexWithStartPositionAndVerticalList_Carrot() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 1837
at System.Runtim
...
VerifyGroupIndexScrollToByIndexWithMakeVisiblePositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupIndexScrollToByIndexWithMakeVisiblePositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 2809
at System.
...
VerifyGroupItemScrollToByIndexWithEndPositionAndHorizontalList_Kiwi
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupItemScrollToByIndexWithEndPositionAndHorizontalList_Kiwi() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 3560
at System.RuntimeMe
...
VerifyRemainingItemsThresholdReachedWithHorizontalList
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyRemainingItemsThresholdReachedWithHorizontalList() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 3651
at System.RuntimeMethodHandle.In
...
VerifyGroupItemScrollToByIndexWithEndPositionAndHorizontalGrid_Potato
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupItemScrollToByIndexWithEndPositionAndHorizontalGrid_Potato() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 3596
at System.Runtime
...
CollectionViewHeaderShouldNotScroll
OpenQA.Selenium.StaleElementReferenceException : Cached elements 'By.id: com.microsoft.maui.uitests:id/HeaderEntry' do not exist in DOM anymore; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#stale-element-reference-exception
at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
at OpenQA.Selenium.WebDriver.ExecuteAsync(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.WebDriver.InternalExecute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.WebElement.Execute(String commandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.WebElement.get_Location()
at OpenQA.Selenium.Appium.AppiumElement.get_Rect()
at UITest.Appium.AppiumGeneralActions.GetRect(IDictionary`2 parameters) in /_/src/TestUtils/src/UITest.Appium/Actions/AppiumGeneralActions.cs:line 51
at UITest.Appium.AppiumGeneralActions.Execute(St
...
VerifyFlowDirectionRTLAndMeasureAllItemsWithGroupedListWhenVerticalGrid
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyFlowDirectionRTLAndMeasureAllItemsWithGroupedListWhenVerticalGrid() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 520
at System.Reflec
...
VerifyGroupItemScrollToByItemWithStartPositionAndVerticalList_Carrot
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupItemScrollToByItemWithStartPositionAndVerticalList_Carrot() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 1973
at System.RuntimeM
...
VerifyGroupIndexScrollToByIndexWithEndPositionAndHorizontalGrid_Potato
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupIndexScrollToByIndexWithEndPositionAndHorizontalGrid_Potato() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 3169
at System.Reflec
...
VerifyGroupIndexScrollToByIndexWithCenterPositionAndVerticalList_Potato
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
at Microsoft.Maui.TestCases.Tests.CollectionView_ScrollingFeatureTests.VerifyGroupIndexScrollToByIndexWithCenterPositionAndVerticalList_Potato() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CollectionView_ScrollingFeatureTests.cs:line 1873
at System.Refle
...
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)
🧭 Next Steps — reviewer changes required
The reviewer-enhanced candidate identified changes that are not yet in the submitted PR.
Why: The submitted production fix is sound and passed the trusted Gate. pr-plus-reviewer wins because it preserves that fix, adds expert-recommended non-first-group regression coverage, and passes the required focused Android UI validation.
Address the actionable findings in this review before merging.
…nViewRemovalsUseCurrentAdapterPositions (#38588) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Details The GroupedCollectionViewRemovalsUseCurrentAdapterPositions test is failing on iOS when running with CollectionView1 (CV1). The test was checked locally, and the crash can be reproduced with CV1. The same test scenario works properly with CollectionView2 (CV2). The PR changes are related to Android, while this test failure occurs only with iOS CV1. This test was added in #38482 ### Root Cause The test scenario causes an existing crash with CollectionView1 (CV1) on iOS. During the investigation, it was also found that the GroupFooterTemplate used in the sample contributes to the CV1 crash. The same scenario works correctly with CV2. The same behavior was reproduced with MAUI 10.0.0 without the PR changes, confirming that the failure is not related to this PR. ### Description of Change Updated the test to run only with CollectionView2 (CV2). This avoids the existing CV1-specific failure on iOS while continuing to validate the intended grouped CollectionView item removal scenario.
Backport of #38341 to release/10.0.1xx-sr11
/cc @kubaflo @Vignesh-SF3580