Skip to content

Move managed device and UI coverage to unit tests - #38780

Closed
kubaflo wants to merge 10 commits into
mainfrom
kubaflo-faster-test-coverage
Closed

kubaflo wants to merge 10 commits into
mainfrom
kubaflo-faster-test-coverage

Conversation

@kubaflo

@kubaflo kubaflo commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

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 from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Move or deduplicate 30 device-test methods and 153 UI-test methods into existing host-based unit suites: 183 slow-test methods removed. Remove 232 unused snapshot baselines across Android, Android notch, iOS, iOS 26, Mac Catalyst, and Windows (10,014,320 bytes, approximately 10.01 MB). Keep native coverage for behavior that cannot be proved by managed unit tests.

The expanded migration adds 63 UI-method removals, 60 unit cases, and 142 snapshot removals beyond the earlier batches. It includes 18 methods quarantined in #38777: seven AbsoluteLayout methods, seven menu operations, and four Shell event methods. This does not claim to resolve all 125 quarantined method/platform pairs or their underlying platform behavior.

Expanded coverage UI methods removed Unit replacement
Shell navigation 23 Stack push/pop/insert/remove, page identities, routes, navigation sources and event arguments; controller-driven item/section/content selection and absolute navigation
Button 17 Real gallery option bindings, font/text combinations, transforms, dimensions, borders/colors, commands and reset/recovery
AbsoluteLayout 11 Actual options and attached properties through the real layout manager; exact arranged rectangles, proportional flag combinations, resize, padding and nonzero origin
MenuBarItem 8 Real menu activation and collection subscriptions; add/edit/remove, empty-input rejection, selection, cancellation, command enablement and reset
Safe-area 4 Real ContentPage, ContentView, Border and Grid policy/background/padding/status bindings; uniform and per-edge changes

The four removed safe-area background tests only checked a status label saying None; they did not verify rendering behind system UI. Their replacements assert the target control's policy, padding, gradient stops and reset behavior. Native inset, keyboard, orientation and additive-padding tests remain. Retained ordered padding tests reset their options to avoid leaking state after neighboring tests are removed.

The retained AbsoluteLayout proportional-layout smoke test compares native bounds and edge anchors without density assumptions, using bounded polling and two-pixel rounding tolerance. Windows retains its original visual assertion and unchanged baseline: its Win2D-backed BoxView is not exposed through UI Automation. Soft-keyboard visibility queries are limited to Android/iOS. Visibility is checked through disappearance and restoration of real native elements.

Earlier batches cover:

Coverage Replacement
Mapper generic types and RefreshView properties Controls unit tests and existing equivalent coverage
Handler lookup, nested initialization exceptions, image-source service registration/disposal Core unit tests using real managed implementations
Share/Map argument validation, malformed launcher URIs, URL query parsing and Location copying Essentials unit tests, with null/empty and altitude-reference cases
Programmatic refresh binding/prevention and custom selected-state transitions Controls unit tests, preserving native interaction and gestures
DataTrigger, EventTrigger, MultiTrigger, StateTrigger and CompareStateTrigger Five XAML scenarios across Runtime, XamlC and SourceGen; enablement, opacity, colors, binding updates and recovery
Label, Button, CheckBox, Switch, Slider and Entry visual-state permutations Real gallery XAML/event handlers across all three inflators; state names, colors, opacity, transforms, text and reset/recovery
BindableLayout feature matrix Real modern StackLayout, FlexLayout and Grid galleries; source identity, child order/binding, templates, empty views, direct APIs and collection updates
BindableLayout empty views (#6932), visual-state styles (#17175), resource BindingContext inheritance (Bugzilla 23942), typed OnPlatform resources (Bugzilla 39636) Direct all-inflator assertions, including re-add/rebind cycles and legacy UWP-to-WinUI fallback
ControlTemplate setter namescope regression Existing all-inflator Maui26977 coverage instead of duplicate UI execution

Gallery replacements source-link the real markup, view models, converters, trigger action and event handlers rather than copying their state machines. Imports required by source-linking are centralized in the unit project's Using items, not scattered through gallery files. Shell tests use the existing ShellTestBase and IShellController selection, rather than assuming CurrentItem assignment has native-selection semantics.

Native coverage retained: representative font/image rendering, native menu accessibility, disabled input, focus, keyboard completion, gestures, live collection updates, flyout/tab/back-button navigation and OS safe areas. Managed event invocation is not considered proof that native controls raise or suppress events. Manual gallery reproductions and required ordered-fixture setup remain.

CI reliability follow-up

Follow-up commits 5b8fd8d679, fcb038c561, and ede28fbc0c address failures observed while running the retained native coverage:

  • Disable prediction/spell checking on the Label fixture's exact-text input, and wait for the full intended native label text before its two screenshots. CI evidence showed veniam being changed to venom. No screenshot baseline or tolerance is changed.
  • Wait for the replacement native flyout element after resetting content or its template, instead of tapping before it exists.
  • Replace WebView GoBack/GoForward not working for HtmlWebViewSource on iOS #30381's public-site dependency with an ephemeral loopback HTTP server. The test still navigates from HtmlWebViewSource to a real URL and back/forward through native WebView history. Actual document titles signal navigation readiness; the fixed sleep is removed. The server is canceled when the page unloads.
  • Disable installed Play Store only on newly created, disposable CI Android emulators, verifying the disabled state. A force-stop proved insufficient: the next CI artifact showed the updater reclaiming the foreground during ActionSheet tests even though the stop command had succeeded. The package remains installed; local runs, existing emulators, physical devices and Google Play services are unchanged.
  • Retry failed fixtures once, inside the original category/shard filter, rather than rerunning all successful fixtures or repeating the whole non-Android pipeline task. Preserve ordered setup, first-run results outside the retried fixtures, and every retry result inside them. Reject missing/extra cases, skipped replacements for executed cases, invalid metadata/counters, incomplete reports and test-host errors. Preserve both attempt reports and attachment locations; exclude intermediate retry TRX files from independent publication.
  • Accept VSTest's valid representation of skipped cases: notExecuted can remain zero while individual NotExecuted results and total - executed account for the skips. CI exposed this compatibility gap in the new helper; regression tests reproduce it before the correction. Every case, other counter and failure safeguard remains checked, and merged reports retain the original skips.
  • Compile [Windows] AutomationId does not work for ContentView, Layouts and controls that inherit them #4715's already Windows-only UIA accessibility opt-out test only into the Windows UI suite, instead of calling Assert.Ignore after fixture setup on other platforms. Mac CI lost its Appium connection and reported that unsupported case as a setup failure; the retry passed all eleven runnable cases but correctly refused to replace the unsupported case's failure with a skip. Windows retains the native assertion, all six cross-platform accessibility cases remain, and the strict skipped-replacement guard is unchanged. This is not a new quarantine or a conversion of a failure into a pass.

CI also exposed two stale policy-test assertions left after #38689 changed the local test reviewer to GPT-6 Astra. Follow-up c7f19cfd00 updates those expectations only; the pinned model, no-environment-override guards and separate primary-reviewer configuration are unchanged.

These are test-fixture and CI changes, not production framework changes. The replacement unit projects already run in the Helix unit-test pipeline. docs/DevelopmentTips.md documents migration boundaries and retry behavior. Counts above are source methods, not scheduled platform executions; end-to-end pipeline time savings have not yet been measured.

Validation

The expanded migration's related host-unit selections passed 510 cases: 183 gallery cases and 327 Shell cases. TRX definitions confirmed execution of all 60 newly added unit cases (14 AbsoluteLayout, 18 Button, 10 MenuBar, eight safe-area and 10 Shell). Earlier focused Core/Essentials/Controls/XAML selections passed 395 cases with two existing skips; these overlapping counts are not additive.

At the preceding published head fa27c506ed, main build 1609172 and device build 1609174 succeeded; seven device Helix jobs and 46 aggregate result XMLs were inspected with no failures. Both retained AbsoluteLayout tests passed on all four platforms in UI build 1609173. Other native failures in that UI build prompted the follow-up above; those prior-head results are not claimed as validation of the follow-up.

For the reliability follow-up:

  • 50 retry regression checks passed, including three skipped-counter cases that failed before the correction. The complete script gate passed 2,318 tests, zero failures, skips or not-run tests, both locally with Pester 5.9.0 and in PowerShell Script Tests run 35945277678 at head fcb038c561. The exact current-head run 35955875938 also passed all 2,318 checks.
  • All four platform Cake scripts compiled in non-executing tree mode for the shared integration; the changed Android script and helper were compiled again after the final corrections. The workflow passes actionlint.
  • The exact escaped fixture/category filter derived from the failed CI CollectionView TRX selected six actual Android cases, all of which passed. Merging those results with the original 78 passing cases produced 84/84, preserving the original coverage rather than publishing only the retry subset. This is a local replay/merge check, not a new CI result.
  • The exact failed Windows CarouselView/CollectionView1 and Android ActionSheet reports from build 1609996 now produce their correct whole-fixture filters. The three unchanged native ActionSheet tests passed on an isolated API30 Google Play emulator with Store disabled. Merging that actual native retry into the actual failed CI report retained 25 cases: 24 passed, zero failed, one original skip. No assertion, screenshot or tolerance was changed.
  • Store disablement was read back, prevented relaunch, and survived app deployment. The local validation device's original Store state was restored afterward and the device shut down; CI devices are disposable.
  • The corrected flyout test passed on Android and iOS. Native WebView back/forward history and Tabbar disappears when navigating back from page with hidden TabBar in iOS 18 #26598's native tab-bar test passed on iOS; the final WebView lifecycle version was rerun successfully.
  • All seven targeted Android safe-area cases passed unchanged locally. Their native assertions were not weakened.
  • The two local iOS Label screenshots have the same 7.62%/7.91% rendering mismatch with the original input configuration and with the correction. Exact native text checks pass in both configurations; snapshots and tolerances remain unchanged. Subsequent fcb038c561 and ede28fbc0c iOS CI passed the retained native screenshot cases.
  • For ede28fbc0c, all four UI assemblies were rebuilt and actual discovery checked: seven [Windows] AutomationId does not work for ContentView, Layouts and controls that inherit them #4715 cases on Windows, six on Android/iOS/Mac. Current-head native CI then passed all six common cases on every target; the Windows-only native opt-out case passed in 44525220/100009 and was absent elsewhere. This verifies native execution as well as compilation/discovery. Formatting and patch checks passed.

At head fcb038c561, main build 1610024 succeeded. The corrected device inventory contains 60 unique XML reports: 46 from original jobs and 14 from subsequent retry jobs, including both Windows packaging modes. These are reports, not deduplicated test counts. The originally failing gesture and default-ItemsLayout CarouselView cases passed unchanged in the Android CoreCLR and Catalyst retry reports; no speculative leak-test or GC-helper changes were retained. That device build still failed because an Essentials worker had no emulator (DEVICE_NOT_FOUND, exit 81); that attempt produced no result and is not counted as passing coverage. Local ARM64/API36 leak probes still reproduce baseline failures; these are not claimed fixed.

Head-fcb038c561 UI evidence exposed the Mac platform-eligibility problem corrected above and the unchanged Android/API36 safe-area failure tracked by #37556. The incomplete old UI build was superseded; it is not presented as a completed green run. Windows native execution was not performed locally; the earlier local Mac Catalyst UI attempt was blocked by host authentication.

Current head ede28fbc0c: all three pipelines were observed to completion after one /azp run request.

Pipeline Final result Evidence
maui-pr 1610208 Succeeded All 26 jobs completed, including Windows/macOS integration
maui-pr-devicetests 1610210 Failed One unique existing Mono Image failure, repeated on retry
maui-pr-uitests 1610209 Failed All 156 jobs completed; one existing CoreCLR Button screenshot failure
  • All four Windows/macOS Debug/Release unit reports were read in full, with unique result IDs and exact counts checked. Each Release report contains 4,547 records: 4,510 passed, 37 existing skips; each Debug report contains 4,551 records: 4,518 passed, 33 existing skips. All 19 methods in the five newest gallery/Shell fixtures were individually confirmed passed in every configuration, rather than inferred from green jobs. These method-level reporter records are not the 60 parameter cases verified locally. Runs: 44524700, 44524702, 44524730, 44524732.
  • Device build 1610210 completed failed after its Mono job rerun. 51 actual XML reports were inspected: 46 original plus five retry reports, covering eight Helix jobs. All expected work items, terminal states, exit codes, individual outcomes, assembly counters and assembly errors were checked. 49 reports have zero failures; two repeat the same single Image failure described below. CoreCLR Controls and Essentials actually executed after emulator recovery; both Catalyst variants, both iOS variants, and both Windows packaging modes have complete reports. The unchanged gesture and CarouselView cases passed; no product memory fix is claimed.
  • The final UI inventory contains 151 completed test runs. Every failed timeline record was checked, including records without structured issues; only the known CoreCLR Button job and its containing/publishing records remain failed. All final Mac suites completed. Their individual outcomes were verified: Shell 292 passed / 13 original skips, Entry 105 / 1, Layout 155 / 4, Border/BoxView/Brush/Button 199 / 2, and SearchBar/Shape/Slider 172 / 0. No new failure emerged in those final jobs. All 38 retained Mac Button feature cases passed; the final suite passed all 65 Slider, 55 Shape and 19 SearchBar feature cases, plus its issue regressions.
  • Retained native Label feature cases passed on Android Mono/CoreCLR, iOS, Mac and Windows. The replacement flyout content/template cases passed on both Android runtimes, iOS and Mac; the Mac results are 44527272/100178 and 44527272/100089. The loopback WebView history case passed on iOS 44525504/100018 and Mac 44526222/100031; it is not registered on Android/Windows, so those platforms' WebView suite passes are not claimed as coverage of that case. Windows' unchanged native AbsoluteLayout screenshot passed 44525588/100118. Mac's retained native AbsoluteLayout proportional and visibility cases passed 44526998/100092 and 44526998/100011, alongside its bounds and flow-direction cases.
  • The exact previously failing API36 safe-area case passed unchanged in 44525800/100157, and its actual SafeAreaEdges suite passed 159/159. The separate green Material3 run did not contain that method and is not used as proof.
  • Known device failure, not fixed: ImageWithUndefinedSizeAndWithBackgroundSetRenders failed in both Mono attempts, on different workers. This exactly matches the existing [ci-scan] ImageWithUndefinedSizeAndWithBackgroundSetRenders fails on Android #38740 failure on main build 1600801: the same assertion and byte-identical 100x100 captured PNG. The baseline Helix job was correlated from that build's own log, not a source/time guess. Latest-main 1608679 and the original base 1605580 passed the exact case; nine fresh local native executions also passed the unchanged 11-case Image fixture (99/99). No speculative readiness delay, assertion weakening, new skip or product correction was published.
  • Known UI failure, not fixed: CoreCLR Issue22306.ButtonsLayoutResolveWhenParentSizeChanges fails its Original2 screenshot with 1.85% difference, exactly as on the PR's base commit in main build 1606067, run/result 44375582/100232. Test, HostApp and baselines are unchanged. The current artifact preserves 216 original cases, retries only 38 fixture cases, and correctly keeps the final result red: 212 passed, one failed, three original skips. The Brush failure recovered; the persistent Button failure was not hidden. The separate green Android Mono and Mac runs are not CoreCLR retries.

Observation is complete for this head. The two remaining native failures have exact target-branch matches and remain visible; they are not claimed fixed. CI is not entirely green, and this evidence is not a merge-readiness approval.

Issues Fixed

N/A - test-suite migration, deduplication and retained-test reliability; no product issue is closed by this PR. Selected quarantined coverage comes from #38777.

Copilot AI lite review requested due to automatic review settings September 22, 2026 16:44
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38780

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38780"

@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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Native text-entry-to-trigger and rendered-result coverage needs final human review.

Review effort: Lite
Findings: None

What changed in this PR

Migrates shared managed behavior from device/UI tests into host-based unit and XAML suites, removing redundant tests and trigger snapshots.

Changes:

  • Adds Essentials, Core, Controls, and multi-inflator XAML unit coverage.
  • Removes duplicated device/UI tests and obsolete baselines.
  • Documents test-suite selection and migration guidance.
File Reviewed change
src/​Essentials/​test/​UnitTests/​WebUtils_Tests.cs Adds query-parsing coverage.
src/​Essentials/​test/​UnitTests/​Share_Tests.cs Adds share validation coverage.
src/​Essentials/​test/​UnitTests/​Location_Tests.cs Adds location-copy coverage.
src/​Essentials/​test/​UnitTests/​Launcher_Tests.cs Adds malformed-URI coverage.
src/​Essentials/​test/​DeviceTests/​Tests/​WebUtils_Tests.cs Removes migrated tests.
src/​Essentials/​test/​DeviceTests/​Tests/​Share_Tests.cs Removes duplicate validation tests.
src/​Essentials/​test/​DeviceTests/​Tests/​Maps_Tests.cs Removes migrated map validation tests.
src/​Essentials/​test/​DeviceTests/​Tests/​Launcher_Tests.cs Removes the migrated URI test.
src/​Essentials/​test/​DeviceTests/​Tests/​Android/​Geolocation_Tests.cs Removes the migrated copy test.
src/​Core/​tests/​UnitTests/​ImageSource/​ImageSourceServiceTests.cs Adds service resolution and disposal coverage.
src/​Core/​tests/​UnitTests/​ElementTests.cs Moves handler lookup coverage to unit tests.
src/​Core/​tests/​DeviceTests/​Services/​ImageSource/​ImageSourceServiceTests.cs Removes migrated service tests.
src/​Controls/​tests/​Xaml.UnitTests/​TriggerBindingScenarios.xaml.cs Adds multi-inflator trigger scenarios.
src/​Controls/​tests/​Xaml.UnitTests/​TriggerBindingScenarios.xaml Defines trigger test scenarios.
src/​Controls/​tests/​Xaml.UnitTests/​Controls.Xaml.UnitTests.csproj Links shared trigger test support.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​Issues/​Issue35399.cs Removes migrated UI coverage.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​Issues/​Issue30690.cs Removes migrated refresh tests.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​Issues/​Issue26977.cs Removes duplicate UI coverage.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​Issues/​Issue16910.cs Removes migrated binding coverage.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​TriggersFeatureTests.cs Removes migrated trigger tests.
src/​Controls/​tests/​TestCases.HostApp/​FeatureMatrix/​Triggers/​TriggersViewModel.cs Updates shared trigger test support.
src/​Controls/​tests/​DeviceTests/​Elements/​RefreshView/​RefreshViewTests.cs Removes migrated managed tests.
src/​Controls/​tests/​Core.UnitTests/​VisualStateManagerTests.cs Adds selected-state regression coverage.
src/​Controls/​tests/​Core.UnitTests/​RefreshViewTests.cs Adds binding and refresh-prevention coverage.
src/​Controls/​tests/​Core.UnitTests/​MapperTests.cs Moves mapper checks to unit tests.
docs/​DevelopmentTips.md Documents suite-selection guidance.

Copilot AI review requested due to automatic review settings September 22, 2026 17:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

A moderate test-isolation issue remains, and the breadth of the migration warrants human review.

Review effort: Lite
Findings: None

Copilot AI review requested due to automatic review settings September 23, 2026 10:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Low severity

Open (1)


namespace Microsoft.Maui.Controls.Xaml.UnitTests;

public partial class Maui6932 : ContentPage
@kubaflo

kubaflo commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

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

Copilot AI review requested due to automatic review settings September 23, 2026 10:59
@kubaflo

kubaflo commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

Review effort: Lite
Findings: 1 Medium severity · 1 Low severity

Open (2)

Comment on lines +141 to +143
var stack = new Page[] { null }.Concat(expected.Skip(1));
Assert.Equal(stack, shell.Navigation.NavigationStack);
Assert.Equal(stack, shell.CurrentItem.CurrentItem.Stack);
Copilot stopped reviewing on behalf of kubaflo due to an error September 23, 2026 11:20
Copilot AI review requested due to automatic review settings September 23, 2026 12:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Note

This error may be related to your runner configuration. You can now configure runners for Copilot code review separately from Copilot cloud agent by creating a copilot-code-review.yml file with your setup steps. Read the docs for details.

@kubaflo

kubaflo commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

/azp run maui-pr-uitests

@kubaflo

kubaflo commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

/azp run maui-pr-devicetests

@kubaflo

kubaflo commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

/rebase

kubaflo and others added 10 commits September 25, 2026 17:16
Migrate or deduplicate 30 device-test methods and 15 UI-test methods into existing host unit suites. Replace logical trigger snapshots with all-inflator XAML assertions, remove 55 unused baselines, and document the native-test boundary.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replace 75 additional UI-test methods with direct value assertions over gallery visual states, BindableLayout behavior, and XAML regressions. Remove 35 unused snapshots while retaining native interaction and rendering smoke coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Consolidate 63 UI methods into managed coverage, including 18 quarantined cases. Add 60 unit cases for Shell, Button, AbsoluteLayout, menus, and safe-area policy. Replace two retained layout screenshots with native assertions and remove 143 obsolete baselines while retaining OS and rendering coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Restore all 24 gallery files to their original contents and define the seven required global imports once in Controls.Xaml.UnitTests. Preserve existing attribute and System.Drawing.Color bindings at the three ambiguous unit-test sites.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep the native layout assertions on every platform without calling IsKeyboardShown on unsupported desktop drivers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep the original Windows proportional-layout baseline because Win2D BoxView is not exposed through UI Automation. Retain native bounds assertions on the other platforms and document the boundary.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve all first-run coverage and diagnostic attachments when retrying UI failures, without replaying successful categories. Remove external WebView navigation and exact-text input races, wait for replacement flyout content, and prevent Play Store updates from covering the CI emulator.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The full script gate exposed two stale expectations left after #38689 switched Review-Tests.ps1 to GPT-6 Astra. Keep the existing model and no-environment-override guards; update only the test expectations. All 2309 workflow Pester checks pass.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Accept VSTest's zero notExecuted counter while still validating every result and total/executed count. Add reproductions for initial and retry reports plus malformed counters. Restrict verified Store disablement to freshly created disposable CI emulators, since force-stop did not prevent its updater reclaiming the foreground.

All 2318 script checks pass. The three unchanged native action-sheet cases pass on API30, and merging them into the actual failed CI report preserves all 25 cases (24 passed, one original skip).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep the UIA accessibility opt-out case out of unsupported platform fixtures instead of ignoring it after setup. Preserve Windows native coverage, the six cross-platform cases, and strict retry-result validation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 25, 2026 17:16
@github-actions
github-actions Bot force-pushed the kubaflo-faster-test-coverage branch from ede28fb to 5284b2b Compare September 25, 2026 17:16
@kubaflo

kubaflo commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Address the two unresolved moderate findings in the XAML inflator coverage and Maui6932 detachment assertions.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 High severity · 2 Medium severity · 1 Low severity

Open (5)

<_GalleryTestPage Include="..\TestCases.HostApp\FeatureMatrix\SafeArea\Border\SafeAreaBorderPage.xaml" />
<_GalleryTestPage Include="..\TestCases.HostApp\FeatureMatrix\SafeArea\Layout\Grid\SafeAreaGridPage.xaml" />
<Compile Include="@(_GalleryTestPage->'%(Identity).cs')" Link="TestCases\%(Filename)%(Extension)" />
<MauiXaml Include="@(_GalleryTestPage)" Link="TestCases\%(Filename)%(Extension)" Inflator="Runtime;SourceGen;XamlC" />

@PureWeen PureWeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Adversarial review by an independent reviewer: no actionable, PR-caused code defects found.

Three independent reviewers assessed the changed managed-test migrations, retained native-coverage boundaries, and UI-test retry/reporting changes. Two initially raised candidates were disproven during structured dispute: published retry reports rebase attachments while raw archived reports are diagnostic-only, and retained device tests continue to exercise native Button stroke mapping.

Test coverage assessment: the change replaces selected UI/device checks with focused unit coverage while retaining native handler coverage for platform behavior.

Prior review status: existing PR feedback was considered for duplication.

Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Expert Review — 0 findings

Reviewed commit 5284b2b.

Source assessment incomplete (7/8 dimensions); finding count is partial.

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

MauiBot commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@kubaflo — existing-test verification for commit 5284b2b3.

Result INCONCLUSIVE Platform Android Commit 5284b2b3


🧪 Gate analysis — click to expand

⚠ Inconclusive. Setup, build, or execution did not produce a conclusive result. This does not prove the fix is incorrect.

No interpretable test-group summary was produced. No additional test execution is inferred.

PR head: 5284b2b3.

Without-fix baseline: 3a7d7287.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Oct 17, 2026
@kubaflo kubaflo closed this Oct 21, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants