Skip to content

[Candidate][iOS/Mac Catalyst] Shell: Fix FlyoutHeader minimum-height UI test setup - #38879

Merged
kubaflo merged 3 commits into
dotnet:inflight/candidatefrom
Dhivya-SF4094:fix-FlyoutHeaderAdaptsToMinimumHeight
Sep 28, 2026
Merged

kubaflo merged 3 commits into
dotnet:inflight/candidatefrom
Dhivya-SF4094:fix-FlyoutHeaderAdaptsToMinimumHeight

Conversation

@Dhivya-SF4094

@Dhivya-SF4094 Dhivya-SF4094 commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Failed case: FlyoutHeaderAdaptsToMinimumHeight

Cause PR: #36821

Root Cause:

  • Previous Behavior: Prior to PR [iOS/Mac Catalyst] Add native element registrations for DevFlow #36821, ShellFlyoutRenderer.cs accessed the background content view via the native Detail.View property. In UIKit, referencing a view controller's.View property forces immediate instantiation (forced lazy loading), even if the view is not yet rendered or is obscured behind an open flyout. As a result, height reference label was forcefully created and remained accessible in the UI automation tree.
  • Changes in PR [iOS/Mac Catalyst] Add native element registrations for DevFlow #36821: The PR refactored lifecycle handling and memory management across renderers (notably in ShellFlyoutRenderer.cs and ShellFlyoutContentRenderer.cs). Direct accesses to Detail.View were replaced with Detail?.ViewIfLoaded (link) to avoid unintended allocations and leaks.
  • Reason for test Fails: Because FlyoutIsPresented = true is set right in the constructor, the flyout opens before the main page is laid out. With Detail?.ViewIfLoaded in place, the obscured background content page is no longer forced into memory.
  • Consequently, the native view for height reference label is not created in the visual tree, causing the test runner to encounter a TimeoutException.

Description of Change:

  • Since PR [iOS/Mac Catalyst] Add native element registrations for DevFlow #36821 introduces correct native lifecycle and memory optimization patterns by avoiding premature view loads, the renderer implementation should remain untouched. The test scenario should instead be updated to align with expected native behavior:
  • Remove FlyoutIsPresented = true from the sample's constructor so the main content page loads naturally first.
  • In the UI test method, first locate height reference label on the visible main page and record its height.
  • Open flyout page (or trigger the flyout via UI interaction), wait for the flyout to display, and fetch the rect for header label.
  • Perform the assertion: Assert.True(header label.height - height reference label.height < 0.2).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Sep 25, 2026
@kubaflo

This comment has been minimized.

@kubaflo

kubaflo commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

/azp run

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Sep 25, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@github-actions

Copy link
Copy Markdown
Contributor

Note

🔍 /review started

AzDO build 15458224 is running for ios.

The s/agent-review-in-progress label stays on this PR while the run is active. The final recommendation and outcome labels are posted only after Gate, expert review, and Deep UI tests finish.

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expert Review — 1 findings

See inline comments for details.

MauiBot

This comment was marked as outdated.

@MauiBot MauiBot added s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-gate-failed AI could not verify tests catch the bug s/agent-fix-win AI found a better alternative fix than the PR s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) and removed s/agent-review-in-progress AI review is currently running for this PR labels Sep 25, 2026
@kubaflo

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Tests Failure Analysis

@Dhivya-SF4094 — test-failure analysis for commit 50edd12.

Scope CI failures Commit 50edd12


🧪 CI Analysis — click to expand
📊 maui-pr

No failures found.


🧪 maui-pr-devicetests

🧪 maui-pr-uitests

🧭 Follow-up — actions and refresh

Next action: Inspect the preceding Windows device-task diagnostics and rerun the incomplete Helix work items.

Maintainers: comment /review tests to refresh this report.

@Dhivya-SF4094 Dhivya-SF4094 changed the title [WIP] [Candidate] Fixed FlyoutHeaderAdaptsToMinimumHeight in iOS/Mac [WIP] [Candidate][iOS/Mac Catalyst] Shell: Fix FlyoutHeader minimum-height UI test setup Sep 27, 2026
@Dhivya-SF4094
Dhivya-SF4094 force-pushed the fix-FlyoutHeaderAdaptsToMinimumHeight branch from 50edd12 to a319de0 Compare September 28, 2026 07:32
dependabot Bot and others added 2 commits September 28, 2026 13:34
Updated
[Microsoft.AspNetCore.Authentication.Facebook](https://github.com/dotnet/dotnet)
from 10.0.0 to 10.0.10.

<details>
<summary>Release notes</summary>

_Sourced from [Microsoft.AspNetCore.Authentication.Facebook's
releases](https://github.com/dotnet/dotnet/releases)._

No release notes found for this version range.

Commits viewable in [compare
view](https://github.com/dotnet/dotnet/commits).
</details>

Updated
[Microsoft.AspNetCore.Authentication.Google](https://github.com/dotnet/dotnet)
from 10.0.0 to 10.0.10.

<details>
<summary>Release notes</summary>

_Sourced from [Microsoft.AspNetCore.Authentication.Google's
releases](https://github.com/dotnet/dotnet/releases)._

No release notes found for this version range.

Commits viewable in [compare
view](https://github.com/dotnet/dotnet/commits).
</details>

Updated
[Microsoft.AspNetCore.Authentication.MicrosoftAccount](https://github.com/dotnet/dotnet)
from 10.0.0 to 10.0.10.

<details>
<summary>Release notes</summary>

_Sourced from [Microsoft.AspNetCore.Authentication.MicrosoftAccount's
releases](https://github.com/dotnet/dotnet/releases)._

No release notes found for this version range.

Commits viewable in [compare
view](https://github.com/dotnet/dotnet/commits).
</details>

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@Dhivya-SF4094
Dhivya-SF4094 force-pushed the fix-FlyoutHeaderAdaptsToMinimumHeight branch from a319de0 to bcb820a Compare September 28, 2026 08:04
@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Sep 28, 2026
@kubaflo

kubaflo commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

/azp run

@github-actions

Copy link
Copy Markdown
Contributor

Note

🔍 /review started

AzDO build 15485774 is running for catalyst.

The s/agent-review-in-progress label stays on this PR while the run is active. The final recommendation and outcome labels are posted only after Gate, expert review, and Deep UI tests finish.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@Dhivya-SF4094 Dhivya-SF4094 changed the title [WIP] [Candidate][iOS/Mac Catalyst] Shell: Fix FlyoutHeader minimum-height UI test setup [Candidate][iOS/Mac Catalyst] Shell: Fix FlyoutHeader minimum-height UI test setup Sep 28, 2026
@MauiBot

This comment has been minimized.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Sep 28, 2026
@sheiksyedm
sheiksyedm marked this pull request as ready for review September 28, 2026 13:48
@sheiksyedm
sheiksyedm requested a review from kubaflo September 28, 2026 13:48
@kubaflo

This comment has been minimized.

@kubaflo

kubaflo commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Sep 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Note

🔍 /review started

AzDO build 15486666 is running for catalyst.

The s/agent-review-in-progress label stays on this PR while the run is active. The final recommendation and outcome labels are posted only after Gate, expert review, and Deep UI tests finish.

@kubaflo
kubaflo merged commit eaf170a into dotnet:inflight/candidate Sep 28, 2026
152 of 204 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Sep 28, 2026

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI Review Summary

@Dhivya-SF4094 — new AI review results are available based on commit f53bbd1.

Gate Inconclusive Confidence Low Platform Mac Catalyst


🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix

Gate Result: ⚠️ INCONCLUSIVE

The trusted test-verification gate could not produce a definitive pass/fail result. Its
detailed display artifact was missing or contradicted this trusted pipeline verdict, so that
agent-writable content was not used in the review summary.

Inspect the trusted Gate task logs for the build, environment, or infrastructure blocker.


📋 Pre-Flight — Context & Validation

PR #38879 Pre-Flight

Context

  • Title: [Candidate][iOS/Mac Catalyst] Shell: Fix FlyoutHeader minimum-height UI test setup
  • Base / head: inflight/candidate / fix-FlyoutHeaderAdaptsToMinimumHeight
  • Head SHA: f53bbd156d02fb9ba6608ae88f792c7da2106d93
  • Platform: Mac Catalyst (catalyst)
  • Related test issue: #24284

Problem

After #36821 changed Shell renderer access from Detail.View to
Detail?.ViewIfLoaded, opening the flyout in the sample constructor no longer
forces the obscured detail page to load. The UI test therefore cannot find
HeightReferenceLabel while the flyout is initially presented.

Current PR Diff

The effective PR diff modifies only:

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue24284.cs

- var heightReferenceLabel = App.WaitForElement("HeightReferenceLabel").GetRect();
  var headerLabel = App.WaitForElement("HeaderLabel").GetRect();

- ClassicAssert.True(Math.Abs(headerLabel.Height - heightReferenceLabel.Height) < 0.2);
+ ClassicAssert.True(Math.Abs(headerLabel.Height - 30) < 0.2);

The latest fix keeps FlyoutIsPresented = true, stops querying the unloaded
detail-page reference label, and compares the header height with the literal
MinimumHeightRequest value of 30.

An earlier commit in this PR removed FlyoutIsPresented = true, queried the
reference label while the detail page was visible, and then called
App.TapShellFlyoutIcon(). The latest commit reverted that setup and replaced
the reference-based assertion with the literal-height assertion. Alternative
candidates must not merely reproduce either mechanism.

Test Scope

Run only the detected primary UI test:

pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform catalyst -TestFilter "FlyoutHeaderAdaptsToMinimumHeight"

No additional mandatory regression tests were supplied, so no other tests or
full suites may be run.

Gate Evidence

The pre-existing gate result is INCONCLUSIVE, not a product/test failure.
Its runner failed before producing a result because
Get-SnapshotSizeMismatchSignatures was unavailable. Do not rerun the gate and
do not overwrite gate/content.md.

Attempt Constraints

  • One implementation/test pass and at most one focused correction/retest.
  • After baseline establishment, edit only paths listed in
    .github/.baseline-state.json under RevertedFiles.
  • The effective PR is test-only. If EstablishBrokenBaseline.ps1 reports no
    safely restorable fix files, record the candidate as Blocked, restore via
    the mandated script, and preserve all artifacts rather than bypassing the
    boundary.

🔬 Code Review — Deep Analysis

Code Review — PR #38879

Independent Assessment

What this changes: The submitted HEAD leaves the Issue24284 flyout open during page construction, stops querying the obscured HeightReferenceLabel, and verifies the flyout header's rendered height directly against its configured MinimumHeightRequest of 30.

Inferred motivation: Avoid a timeout introduced when the background Shell detail view is no longer force-loaded, while preserving coverage that a flyout header with content smaller than its minimum height renders at that minimum.

Reconciliation with PR Narrative

The root-cause explanation is consistent with the unavailable background reference element. The current description's proposed implementation is stale, however: submitted HEAD does not remove FlyoutIsPresented = true, tap the flyout icon, or compare two rendered labels. It instead uses the configured minimum height as the expected value.

Prior Review Reconciliation

The earlier critical feedback applied to the intermediate TapShellFlyoutIcon variant. That code is absent from submitted HEAD, so the finding is obsolete. No unresolved prior error-level finding applies to the current diff.

Blast Radius Assessment

  • Runs for all instances: No; this changes only the Issue24284 UI test assertion.
  • Startup impact: No product startup behavior changes.
  • Static/shared state: None.
  • Adjacent Shell behavior: The test still starts with the flyout presented and waits for HeaderLabel, so it exercises the intended flyout-header layout without depending on background detail-view materialization.

CI Status

  • Trusted Gate: Inconclusive because the test could not be built or run; this is not evidence of a regression failure.
  • Required-check result: Pending/undetermined for the current head.
  • Classification: Validation coverage gap, not a demonstrated defect.
  • Action taken: Confidence capped at low; no gate rerun.

Findings

No actionable line-level findings. inline-findings.json contains [].

Failure-Mode Probing

  • Background page not loaded: The test no longer queries HeightReferenceLabel, so the original timeout path is removed.
  • Header content renders above its minimum: The exact-height assertion would detect expansion, preserving the original regression intent because the header label has no content requiring more than 30 points.
  • Platform scaling: Appium rectangles and MAUI HeightRequest/MinimumHeightRequest are exposed in logical units on the targeted Apple platforms; the existing 0.2 tolerance accounts for minor measurement variance.

External Output Contract

Not applicable.

Verdict: NEEDS_DISCUSSION

Confidence: low

Summary: The current test-only fix is internally coherent and has no identified blocking code defect. Approval confidence remains low solely because the relevant Catalyst validation and required checks are pending or unavailable, not because the submitted fix failed.


🛠️ Try-Fix — Analysis & Comparison

Try-Fix Candidate 1 Narrative (PR #38879)

Approach

Blocked by baseline allow-list boundary. No implementation was applied.

Prior mechanisms explicitly avoided

  1. Current PR mechanism: removing HeightReferenceLabel query and asserting literal height 30.
  2. Earlier PR mechanism: keeping flyout initially closed to load detail first, querying visible HeightReferenceLabel, then opening flyout.

Mechanism-level difference

This attempt used a distinct control-path mechanism: restorable-state enforcement. Because baseline establishment returned No fix files detected, there was no .github/.baseline-state.json RevertedFiles allow-list. Under try-fix policy, that prevents tracked code edits and forces Blocked before behavior-level changes.

Files changed

No production/test source files modified.
Artifacts created under:

  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-1/

Full captured diff

Exact test result / output summary

Primary command not run:
pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform catalyst -TestFilter "FlyoutHeaderAdaptsToMinimumHeight"

Reason: baseline script failed first with:
EstablishBrokenBaseline.ps1 failed: No fix files detected. Cannot establish baseline without fix files.

Failure/block analysis

  • Step 2 baseline failed (No fix files detected).
  • Required allow-list state was absent.
  • Per hard boundary, attempt recorded as Blocked instead of bypassing file boundary.
  • Restore executed via script-only command: pwsh .github/scripts/EstablishBrokenBaseline.ps1 -Restore returned No baseline state found / Restored False, which is expected for this no-state blocked path.

Findings count

0 (reviewer-findings.json = [])

Artifact locations

  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-1/baseline.log
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-1/approach.md
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-1/reviewer-findings.json
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-1/reviewer-findings.diff
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-1/test-output.log
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-1/fix.diff
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-1/result.txt
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-1/analysis.md

Try-Fix Candidate 2 Narrative (PR #38879)

Result

Blocked

Proposed/attempted approach

Visible Flyout-Footer Height Oracle. Keep FlyoutIsPresented = true, add an independent 30-device-unit reference label to FlyoutFooter, and compare its runtime rectangle with the already-visible HeaderLabel. Because the footer and header belong to the presented flyout, both would be materialized even while the obscured detail page remains unloaded. The intended coordinated edits were:

  • src/Controls/tests/TestCases.HostApp/Issues/Issue24284.xaml.cs: add the independent visible footer reference.
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue24284.cs: query the footer reference and compare the two runtime heights.

This behavior-level mechanism was recorded in attempt-2/approach.md before baseline establishment. It was not implemented because baseline establishment produced no restoration allow-list.

Prior mechanisms explicitly avoided

  1. Current PR mechanism: remove the unavailable HeightReferenceLabel query and compare HeaderLabel.Height with literal 30.
  2. Earlier PR mechanism: remove the initially-open flyout setup, allow the detail page to load, query its visible reference label, and then open the flyout.
  3. Candidate 1 non-approach: stop at the restoration boundary without identifying a distinct behavior-level mechanism. Candidate 1 was not reopened, rerun, altered, or copied.

Mechanism-level difference

The failure occurs because the original runtime height oracle is inside the obscured detail page, and Detail?.ViewIfLoaded intentionally does not realize that page while the flyout starts open. Candidate 2 relocates the independent oracle into the already-realized flyout footer. Thus, availability comes from the same visible flyout tree as the header while preserving the original initially-open scenario; the assertion would compare runtime geometry rather than a literal and would not load the detail page before opening the flyout. This is causally distinct from both prior fixes and from candidate 1's safety-boundary-only outcome.

Files changed

No production or test source files were modified. The required two source paths could not be edited because .github/.baseline-state.json was absent and therefore contained no RevertedFiles allow-list.

Attempt artifacts were created only under:

  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-2/

Full captured diff

Exact test result / output summary

Baseline command executed:

pwsh .github/scripts/EstablishBrokenBaseline.ps1

It exited with code 1 and reported:

ERROR: No fix files detected.
EstablishBrokenBaseline.ps1 failed: No fix files detected. Cannot establish baseline without fix files.

Verification found no Baseline established marker and no .github/.baseline-state.json.

The sole permitted test command was not run:

pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform catalyst -TestFilter "FlyoutHeaderAdaptsToMinimumHeight"

No test/build output was produced. Running it after a failed baseline would have violated the try-fix restoration boundary. test-output.log records this exact blocked disposition.

Script-only restoration then ran exactly:

pwsh .github/scripts/EstablishBrokenBaseline.ps1 -Restore

It completed successfully with the expected no-state result for this blocked path:

No baseline state found. Nothing to restore.
Restored False
Message: No baseline state found

Failure/block analysis

  • The PR contains only a test-file change, so EstablishBrokenBaseline.ps1 detected no non-test fix files.
  • No baseline state or RevertedFiles allow-list was created.
  • The proposed mechanism requires both the HostApp code-behind and the UI test file; neither was safely editable.
  • No tracked edit, test pass, correction, or retest occurred. The safety boundary was honored rather than bypassed.
  • The existing gate evidence remained read-only and was not rerun or overwritten.

Findings count

  1. Inline expert self-review covered the overarching principles and always-active Logic and Correctness, Regression Prevention, and Complexity Reduction dimensions. With no tracked diff, reviewer-findings.json is [], and reviewer-findings.diff captures the empty reviewed diff.

Artifact locations

  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-2/baseline.log
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-2/approach.md
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-2/reviewer-findings.json
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-2/reviewer-findings.diff
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-2/test-output.log
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-2/fix.diff
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-2/result.txt
  • CustomAgentLogsTmp/PRState/38879/PRAgent/try-fix/attempt-2/analysis.md

📝 PR Finalize — Recommended Title & Description

Assessment: ✏️ Recommend updating — the current description documents the reverted close/load/open implementation, while submitted HEAD keeps the flyout initially presented and compares the rendered header height directly with its configured minimum.

Recommended title

[iOS/Mac Catalyst] Shell: Verify FlyoutHeader minimum height without loading the detail view

Recommended description

### Failed test

`FlyoutHeaderAdaptsToMinimumHeight`

Related: #24284
Cause PR: #36821

### Root Cause

- **Previous behavior:** Before #36821, `ShellFlyoutRenderer.cs` accessed the background content view through the native `Detail.View` property. In UIKit, reading a view controller's `View` property forces lazy view creation even when the view is not rendered or is obscured by an open flyout. This made `HeightReferenceLabel` available to UI automation.
- **Change in #36821:** Shell renderer lifecycle and memory handling were updated, including replacing direct `Detail.View` access with `Detail?.ViewIfLoaded` in `ShellFlyoutRenderer.cs`, to avoid unintended allocations and leaks: https://github.com/dotnet/maui/pull/36821/changes#diff-cbab70d5a2ec947aeed1ea4448b5d989a6b07d63ab583da55fbe8661aacb3d15R223
- **Why the test times out:** The Issue24284 fixture sets `FlyoutIsPresented = true` in its constructor, so the flyout opens before the main content page is laid out. With `Detail?.ViewIfLoaded`, the obscured detail page is no longer forced into memory, its native `HeightReferenceLabel` is not created, and `App.WaitForElement("HeightReferenceLabel")` times out.

### Description of Change

Keep the renderer and the initially-presented flyout scenario unchanged. Update `FlyoutHeaderAdaptsToMinimumHeight` to:

- stop querying `HeightReferenceLabel` from the intentionally unloaded detail page;
- wait for the visible flyout `HeaderLabel`; and
- compare its rendered height directly with the fixture's configured `MinimumHeightRequest` of `30`, retaining the existing `0.2` tolerance.

This preserves coverage that `FlyoutHeader` honors its minimum height without depending on obsolete forced loading of the background detail view.

### Platform

- iOS
- Mac Catalyst

### Testing

The Catalyst verification Gate was inconclusive because the test runner failed before producing a result; no test failure was recorded.

🏁 Report — Final Recommendation

⚠️ Final Recommendation: REQUEST CHANGES

Winner: pr

The raw submitted PR is the strongest candidate. It makes the smallest implemented change that removes the known timeout path while preserving the initially-presented flyout scenario, and the expert review found no actionable code defect. The recommendation remains REQUEST CHANGES because the PR description documents an earlier, no-longer-submitted implementation and the trusted Catalyst Gate is inconclusive; this is not a regression-test failure.

Comparative Ranking

Rank Candidate Implementation Validation Review assessment
1 pr Replaces the unavailable detail-page height oracle with the header's configured minimum height (30). Gate inconclusive due runner/environment error; no test failure recorded. No actionable expert finding; coherent and minimal.
2 pr-plus-reviewer Identical to pr; the reviewer supplied no source refinement. Not rerun because no patch was applied; inherits the same inconclusive evidence. Safe but adds no improvement over the submitted fix, so the raw PR wins the tie.
3 try-fix-2 Proposed a visible flyout-footer height oracle, but produced no source diff. Blocked before testing by the restoration allow-list boundary. Conceptually independent, but unimplemented and potentially broadens the UI fixture by adding footer layout.
4 try-fix-1 No behavior-level implementation; stopped at the baseline boundary. Blocked before testing by the restoration allow-list boundary. No candidate fix to evaluate.

Validation Ordering

No candidate failed regression tests, and no candidate passed them. The raw PR and identical reviewer candidate are unverified because the Gate failed in test infrastructure before producing a result; both try-fix candidates are lower-ranked because they were blocked without an implementation or test execution. This honors the requirement that an actual regression-test failure would rank below a pass without misclassifying environment blockage as failure.

Why pr Wins

  • It directly removes the dependency on HeightReferenceLabel, whose native view is intentionally absent while the detail page remains unloaded.
  • It retains FlyoutIsPresented = true, so the test still covers the original flyout-header scenario rather than changing page-loading order.
  • The expected value is coupled to the fixture's explicit MinimumHeightRequest = 30; Appium measures the rendered header in the same logical units on the targeted Apple platforms.
  • pr-plus-reviewer has an empty reviewer.patch, while both try-fix candidates have empty implementation diffs and no validation result.

Required Before Approval

Update the PR description to describe the submitted literal-minimum-height assertion rather than the reverted close/load/open/reference-label flow. The missing Catalyst verification should also be resolved by CI or a later authorized run, but the existing inconclusive Gate must not be treated as a failed fix.


📱 UI Tests — Shell

Detected UI test categories: Shell

❌ Deep UI tests — 140 passed, 185 failed, 13 skipped across 1 category on platform-pool agent (replaces in-process counts above).

🧪 UI Test Execution Results (deep, platform pool)

Category Tests Snapshot diffs
Shell 140/338 (185 ❌, 13 skipped) 89 diff PNGs
🔍 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 unrelated: the failures appear pre-existing, flaky, or infrastructure.

  • ● Unrelated — Shell snapshot-baseline mismatches (100+ tests): the run-wide visual diffs span unrelated Shell navigation, flyout, and SearchHandler scenarios, while this PR changes only one test assertion and no Catalyst rendering or product code.
  • ● Unrelated — Appium element-wait timeouts (dozens of tests): generic Timed out waiting for element failures across unrelated Shell navigation paths are a nondeterministic automation pattern that the assertion-only change cannot cause.

Strongest signal: the PR can affect only FlyoutHeaderAdaptsToMinimumHeight, but the reported failures follow broad snapshot-baseline and element-wait patterns elsewhere in Shell.

❌ Shell — 185 failed tests
NavigationBetweenFlyoutItems
VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: NavigationBetweenFlyoutItems.png (1.22% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, N
...
SearchHandlerClearIconUpdatesAtRuntime
VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: SearchHandlerClearIconUpdatesAtRuntime.png (5.62% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 ret
...
PassData_IQueryAttributable_ReceivesDecodedValues
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.ShellNavigationFeatureTests.PassData_IQueryAttributable_ReceivesDecodedValues() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellNavigationFeatureTests.cs:line 802
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleO
...
SearchHandlerResetAllRestoresDefaultIcons
VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: SearchHandlerResetAllRestoresDefaultIcons.png (5.56% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 
...
NavigationBarShouldRemainHiddenAfterNavigatingBack
VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: NavigationBarShouldRemainHiddenAfterNavigatingBack.png (2.37% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nu
...
VerifyFlyoutSelectedCurrentItem
VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: VerifyFlyoutSelectedCurrentItem.png (2.94% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay
...
VerifyHamburgerIcon
VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: VerifyHamburgerIcon.png (1.86% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1
...
RemovingIntermediatePagesBreaksShell
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, IQuery query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 958
   at UITest.Appium.HelperExtensions.WaitForElementTillPageNavigationSettled(IApp app, String elementId, Nullable`1 timeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2441
   at Microsoft.Maui.TestCases.Tests.Issues.Issue6484.RemovingIntermediatePagesBreaksShell()
...
NavEvents_GoToAsyncAbsoluteRoute_NavigatingEvent_SourceIsShellItemChanged
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.ShellNavigationFeatureTests.NavEvents_GoToAsyncAbsoluteRoute_NavigatingEvent_SourceIsShellItemChanged() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellNavigationFeatureTests.cs:line 584
   at System.RuntimeMethodHandle.In
...
ShouldUpdateSearchHandlerOnPageNavigation
VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: ShouldUpdateSearchHandlerOnPageNavigation.png (2.05% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 
...
VerifySearchHandlerPlaceholderText
VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: VerifySearchHandlerPlaceholderText.png (2.12% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDe
...
VerifyShellFlyout_BackgroundColorWithHeaderAndFooter
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.ShellFeatureTests.VerifyShellFlyout_BackgroundColorWithHeaderAndFooter() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellFeatureMatrixTests.cs:line 855
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack targ
...
VerifyShellFlyout_FlyoutHeaderTemplateAndFooter
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.ShellFeatureTests.VerifyShellFlyout_FlyoutHeaderTemplateAndFooter() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellFeatureMatrixTests.cs:line 151
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, V
...
NavEvents_ShellSectionChanged_NavigatingEvent_SourceIsShellSectionChanged
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 UITest.Appium.HelperExtensions.WaitForFlyoutIcon(IApp app, String automationId, Boolean isShell) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2477
   at UITest.Appium.HelperExtensions.TapFlyoutIcon(IApp app, String title, Boolean isShell, Boolean waitForFlyout
...
ShellPages_PresentationModeModal
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.ShellPagesFeatureTests.ShellPages_PresentationModeModal() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellPagesFeatureTests.cs:line 273
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** argum
...
NavEvents_Pop_NavigatingEvent_SourceIsPopAndCurrentIsPreviousPage
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.ShellNavigationFeatureTests.NavEvents_Pop_NavigatingEvent_SourceIsPopAndCurrentIsPreviousPage() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellNavigationFeatureTests.cs:line 480
   at System.RuntimeMethodHandle.InvokeMeth
...
VerifyFlyoutIconBackgroundColor
VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: VerifyFlyoutIconBackgroundColor.png (1.93% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay
...
VerifyShellFlyout_ShellContentAndBackgroundImage
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.ShellFeatureTests.VerifyShellFlyout_ShellContentAndBackgroundImage() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellFeatureMatrixTests.cs:line 797
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, 
...
VerifyShellSearch_Placeholder
System.InvalidOperationException : Unable to extract difference percentage from exception message.
at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance, Boolean includeTitleBar) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 299
   at Microsoft.Maui.TestCases.Tests.ShellSearchHandlerFeatureTests.VerifyShellSearch_Placeholder() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellSearchHandlerFeatureTests.cs:line 83
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method
...
TabBarIconsShouldAutoscaleShell
VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: TabBarIconsShouldAutoscaleShell.png (1.92% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay
...
TabBarShouldBeVisibleOnMacCatalyst
VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: TabBarShouldBeVisibleOnMacCatalyst.png (2.73% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDe
...
VerifyShellFlyout_Width
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.ShellFeatureTests.VerifyShellFlyout_Width() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellFeatureMatrixTests.cs:line 448
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectH
...
VerifyShellFlyout_HeightAndWidthWithBackgroundColor
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.ShellFeatureTests.VerifyShellFlyout_HeightAndWidthWithBackgroundColor() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellFeatureMatrixTests.cs:line 921
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack targe
...
VerifyShellFlyoutHeaderFooter_Width
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.ShellFeatureTests.VerifyShellFlyoutHeaderFooter_Width() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellFeatureMatrixTests.cs:line 174
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** argume
...
RelativeRoute_Detail1ToNavTest1
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.ShellNavigationFeatureTests.RelativeRoute_Detail1ToNavTest1() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellNavigationFeatureTests.cs:line 183
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Voi
...
VerifyShellSearch_FontAttributesItalic
System.InvalidOperationException : Unable to extract difference percentage from exception message.
at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance, Boolean includeTitleBar) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 299
   at Microsoft.Maui.TestCases.Tests.ShellSearchHandlerFeatureTests.VerifyShellSearch_FontAttributesItalic() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellSearchHandlerFeatureTests.cs:line 160
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.Reflection.MethodBaseInvoker.InterpretedInv
...
VerifyShellSearch_CancelButtonColor
System.InvalidOperationException : Unable to extract difference percentage from exception message.
at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance, Boolean includeTitleBar) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 299
   at Microsoft.Maui.TestCases.Tests.ShellSearchHandlerFeatureTests.VerifyShellSearchScreenshot() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellSearchHandlerFeatureTests.cs:line 41
   at Microsoft.Maui.TestCases.Tests.ShellSearchHandlerFeatureTests.VerifyShellSearch_CancelButtonColor() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellSearchHandlerFeatureTests.cs:line 635
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.Run
...
VerifyShellSearch_FontSize
System.InvalidOperationException : Unable to extract difference percentage from exception message.
at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance, Boolean includeTitleBar) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 299
   at Microsoft.Maui.TestCases.Tests.ShellSearchHandlerFeatureTests.VerifyShellSearch_FontSize() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellSearchHandlerFeatureTests.cs:line 183
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(O
...
PassData_MultipleStringParams_ReceivedByIQueryAttributable
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.ShellNavigationFeatureTests.NavigateToQuerySenderAndWait() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ShellNavigationFeatureTests.cs:line 54
   at Microsoft.Maui.TestCases.Tests.ShellNavigationFeatureTests.PassData_Multipl
...
ChangeShellContentTitle
VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: ChangeShellContentTitle.png (2.64% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 123
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullab
...

(+155 more — see TRX in artifact)

📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)


🧭 Next Steps — review latest findings

No alternative fix was selected for this run. Review the session findings and CI results before merging.

@MauiBot MauiBot added s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates and removed s/agent-gate-failed AI could not verify tests catch the bug s/agent-fix-win AI found a better alternative fix than the PR s/agent-review-in-progress AI review is currently running for this PR labels Sep 28, 2026
@sheiksyedm sheiksyedm added the community ✨ Community Contribution label Oct 1, 2026
kubaflo pushed a commit that referenced this pull request Oct 3, 2026
…UI test setup (#38879)

### Failed case: FlyoutHeaderAdaptsToMinimumHeight

### Cause PR: #36821 

### Root Cause:

- Previous Behavior: Prior to PR #36821, ShellFlyoutRenderer.cs accessed
the background content view via the native **Detail.View** property. In
UIKit, referencing a view controller's.View property forces immediate
instantiation **(forced lazy loading)**, even if the view is not yet
rendered or is obscured behind an open flyout. As a result, height
reference label was forcefully created and remained accessible in the UI
automation tree.
- Changes in PR #36821: The PR refactored lifecycle handling and memory
management across renderers (notably in ShellFlyoutRenderer.cs and
ShellFlyoutContentRenderer.cs). Direct accesses to **Detail.View** were
replaced with **Detail?.ViewIfLoaded**
([link](https://github.com/dotnet/maui/pull/36821/changes#diff-cbab70d5a2ec947aeed1ea4448b5d989a6b07d63ab583da55fbe8661aacb3d15R223))
to avoid unintended allocations and leaks.
- Reason for test Fails: Because **FlyoutIsPresented = true** is set
right in the constructor, the flyout opens before the main page is laid
out. With Detail?.ViewIfLoaded in place, the obscured background content
page is no longer forced into memory.
- Consequently, the native view for height reference label is not
created in the visual tree, causing the test runner to encounter a
TimeoutException.


### Description of Change:

- Since PR #36821 introduces correct native lifecycle and memory
optimization patterns by avoiding premature view loads, the renderer
implementation should remain untouched. The test scenario should instead
be updated to align with expected native behavior:
- Remove FlyoutIsPresented = true from the sample's constructor so the
main content page loads naturally first.
- In the UI test method, first locate height reference label on the
visible main page and record its height.
- Open flyout page (or trigger the flyout via UI interaction), wait for
the flyout to display, and fetch the rect for header label.
- Perform the assertion: Assert.True(header label.height - height
reference label.height < 0.2).

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
BagavathiPerumal pushed a commit to BagavathiPerumal/maui that referenced this pull request Oct 7, 2026
…UI test setup (dotnet#38879)

- Previous Behavior: Prior to PR dotnet#36821, ShellFlyoutRenderer.cs accessed
the background content view via the native **Detail.View** property. In
UIKit, referencing a view controller's.View property forces immediate
instantiation **(forced lazy loading)**, even if the view is not yet
rendered or is obscured behind an open flyout. As a result, height
reference label was forcefully created and remained accessible in the UI
automation tree.
- Changes in PR dotnet#36821: The PR refactored lifecycle handling and memory
management across renderers (notably in ShellFlyoutRenderer.cs and
ShellFlyoutContentRenderer.cs). Direct accesses to **Detail.View** were
replaced with **Detail?.ViewIfLoaded**
([link](https://github.com/dotnet/maui/pull/36821/changes#diff-cbab70d5a2ec947aeed1ea4448b5d989a6b07d63ab583da55fbe8661aacb3d15R223))
to avoid unintended allocations and leaks.
- Reason for test Fails: Because **FlyoutIsPresented = true** is set
right in the constructor, the flyout opens before the main page is laid
out. With Detail?.ViewIfLoaded in place, the obscured background content
page is no longer forced into memory.
- Consequently, the native view for height reference label is not
created in the visual tree, causing the test runner to encounter a
TimeoutException.

- Since PR dotnet#36821 introduces correct native lifecycle and memory
optimization patterns by avoiding premature view loads, the renderer
implementation should remain untouched. The test scenario should instead
be updated to align with expected native behavior:
- Remove FlyoutIsPresented = true from the sample's constructor so the
main content page loads naturally first.
- In the UI test method, first locate height reference label on the
visible main page and record its height.
- Open flyout page (or trigger the flyout via UI interaction), wait for
the flyout to display, and fetch the rect for header label.
- Perform the assertion: Assert.True(header label.height - height
reference label.height < 0.2).

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Vignesh-SF3580 pushed a commit to Vignesh-SF3580/maui that referenced this pull request Oct 7, 2026
…UI test setup (dotnet#38879)

- Previous Behavior: Prior to PR dotnet#36821, ShellFlyoutRenderer.cs accessed
the background content view via the native **Detail.View** property. In
UIKit, referencing a view controller's.View property forces immediate
instantiation **(forced lazy loading)**, even if the view is not yet
rendered or is obscured behind an open flyout. As a result, height
reference label was forcefully created and remained accessible in the UI
automation tree.
- Changes in PR dotnet#36821: The PR refactored lifecycle handling and memory
management across renderers (notably in ShellFlyoutRenderer.cs and
ShellFlyoutContentRenderer.cs). Direct accesses to **Detail.View** were
replaced with **Detail?.ViewIfLoaded**
([link](https://github.com/dotnet/maui/pull/36821/changes#diff-cbab70d5a2ec947aeed1ea4448b5d989a6b07d63ab583da55fbe8661aacb3d15R223))
to avoid unintended allocations and leaks.
- Reason for test Fails: Because **FlyoutIsPresented = true** is set
right in the constructor, the flyout opens before the main page is laid
out. With Detail?.ViewIfLoaded in place, the obscured background content
page is no longer forced into memory.
- Consequently, the native view for height reference label is not
created in the visual tree, causing the test runner to encounter a
TimeoutException.

- Since PR dotnet#36821 introduces correct native lifecycle and memory
optimization patterns by avoiding premature view loads, the renderer
implementation should remain untouched. The test scenario should instead
be updated to align with expected native behavior:
- Remove FlyoutIsPresented = true from the sample's constructor so the
main content page loads naturally first.
- In the UI test method, first locate height reference label on the
visible main page and record its height.
- Open flyout page (or trigger the flyout via UI interaction), wait for
the flyout to display, and fetch the rect for header label.
- Perform the assertion: Assert.True(header label.height - height
reference label.height < 0.2).

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
SubhikshaSf4851 pushed a commit to SubhikshaSf4851/maui that referenced this pull request Oct 8, 2026
…UI test setup (dotnet#38879)

- Previous Behavior: Prior to PR dotnet#36821, ShellFlyoutRenderer.cs accessed
the background content view via the native **Detail.View** property. In
UIKit, referencing a view controller's.View property forces immediate
instantiation **(forced lazy loading)**, even if the view is not yet
rendered or is obscured behind an open flyout. As a result, height
reference label was forcefully created and remained accessible in the UI
automation tree.
- Changes in PR dotnet#36821: The PR refactored lifecycle handling and memory
management across renderers (notably in ShellFlyoutRenderer.cs and
ShellFlyoutContentRenderer.cs). Direct accesses to **Detail.View** were
replaced with **Detail?.ViewIfLoaded**
([link](https://github.com/dotnet/maui/pull/36821/changes#diff-cbab70d5a2ec947aeed1ea4448b5d989a6b07d63ab583da55fbe8661aacb3d15R223))
to avoid unintended allocations and leaks.
- Reason for test Fails: Because **FlyoutIsPresented = true** is set
right in the constructor, the flyout opens before the main page is laid
out. With Detail?.ViewIfLoaded in place, the obscured background content
page is no longer forced into memory.
- Consequently, the native view for height reference label is not
created in the visual tree, causing the test runner to encounter a
TimeoutException.

- Since PR dotnet#36821 introduces correct native lifecycle and memory
optimization patterns by avoiding premature view loads, the renderer
implementation should remain untouched. The test scenario should instead
be updated to align with expected native behavior:
- Remove FlyoutIsPresented = true from the sample's constructor so the
main content page loads naturally first.
- In the UI test method, first locate height reference label on the
visible main page and record its height.
- Open flyout page (or trigger the flyout via UI interaction), wait for
the flyout to display, and fetch the rect for header label.
- Perform the assertion: Assert.True(header label.height - height
reference label.height < 0.2).

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants