Repository navigation
[Testing] Refactoring Feature Matrix UITest Cases for ProgressBar Control - #40469
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
/review run-tests |
PR Test Gate
🧪 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. Setup did not capture a verified PR head; no commit is claimed as tested. No immutable without-fix baseline was prepared. |
69eb87a to
05cb523
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
05cb523 to
4cd2ca3
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
PR Test Gate
🧪 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. Setup did not capture a verified PR head; no commit is claimed as tested. No immutable without-fix baseline was prepared. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
5605a34 to
0b3aa6c
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Expert Review — 3 findings
Reviewed commit 640c43b.
See inline comments for details.
Previously reported findings were not duplicated.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Selected Tests
🧪 Test selection — click to expand
🧪 UI tests —
|
| Platform | Categories |
|---|---|
| Android | ProgressBar, Material3 |
| iOS | ProgressBar |
| MacCatalyst | ProgressBar |
| Windows | ProgressBar |
🧪 Device tests — nothing to run
ℹ️ The AI found no changes relevant to device tests, so no maui-pr-devicetests run was queued.
GPT-6.2 Sol: No device tests are needed for this UI-test-only refactor.
MAI Code 2: No device tests: the PR changes only UI test host code, UI tests, and UI snapshots.
🧪 Running — nothing
No device tests run for this PR.
⏭️ Skipped — what neither suite runs
UI tests — 75 categories, 0 platforms
Categories not run: Accessibility, ActionSheet, ActivityIndicator, Animation, AppLinks, Border, BoxView, Brush, Button, CarouselView, CollectionView1, CollectionView2, CollectionView3, CollectionView4, CollectionView5, CollectionView6, CollectionView7, Cells, CheckBox, ContextActions, CustomRenderers, DatePicker, Dispatcher, DisplayAlert, DisplayPrompt, DragAndDrop, Entry, Editor, Effects, Essentials, FlyoutPage, Focus, Fonts, Frame, Gestures, GraphicsView, Image, ImageButton, IndicatorView, InputTransparent, IsEnabled, IsVisible, Label, Layout, Lifecycle, ManualReview, Maps, Navigation, Page, Performance, Picker, RadioButton, RefreshView, SafeAreaEdges, Shadow, ScrollView, SearchBar, Shape, Slider, SoftInput, Stepper, Switch, SwipeView, Shell1, Shell2, TabbedPage, TableView, TimePicker, TitleView, ToolbarItem, Triggers, ViewBaseTests, VisualStateManager, Window, WebView
Each skipped platform and category is listed as a maui-pr-uitests (skipped) … status on this commit. Use /azp run maui-pr-uitests for the full suite.
Device tests — 105 categories, 4 platforms
Platforms not run: Android, iOS, MacCatalyst, Windows
Each skipped platform and project is listed as a maui-pr-devicetests (skipped) … status on this commit. Use /azp run maui-pr-devicetests for the full suite.
🤖 Why these tests — AI rationale (GPT-6.2 Sol + MAI Code 2)
UI tests
Each model chose independently; every test that runs was selected by at least one of them.
| Platform | GPT-6.2 Sol | MAI Code 2 |
|---|---|---|
| Android | ProgressBar, Material3 |
ProgressBar, Material3 |
| iOS | ProgressBar |
ProgressBar |
| MacCatalyst | ProgressBar |
ProgressBar |
| Windows | ProgressBar |
ProgressBar |
GPT-6.2 Sol — The ProgressBar Feature Matrix refactor needs ProgressBar UI tests on all four platforms and Material3 UI tests on Android.
- The refactored ProgressBar host page, view model, shared tests, and snapshots affect all four platforms.
- Material3ProgressBarFeatureTests and its snapshots need the Android Material3 lane.
- No shared UI test infrastructure changed; omit unrelated categories.
MAI Code 2 — ProgressBar feature-matrix UI test refactor; run ProgressBar coverage on all UI platforms and Material3 coverage on Android.
ProgressBarControlPage, its view model, and the shared ProgressBar UI tests changed, so runProgressBaron Android, iOS, MacCatalyst, and Windows.- The shared Material3 ProgressBar tests and Android Material3 snapshots changed, so include
Material3on Android; it is not runnable on other platforms. - Changes are confined to a UI test host page and its tests, so no full UI run or unrelated categories are needed.
- Device tests are not selected because only the UI test host, UI tests, and UI snapshots changed.
Device tests
Each model chose independently; every test that runs was selected by at least one of them.
| Platform | GPT-6.2 Sol | MAI Code 2 |
|---|---|---|
| Android | — | — |
| iOS | — | — |
| MacCatalyst | — | — |
| Windows | — | — |
GPT-6.2 Sol — No device tests are needed for this UI-test-only refactor.
- All changes are in TestCases host pages, UI tests, or snapshots.
- No product code, device tests, or device-test infrastructure changed.
MAI Code 2 — No device tests: the PR changes only UI test host code, UI tests, and UI snapshots.
- No product code, device test code, or shared device-test infrastructure changed.
- The affected feature-matrix page and tests are part of the UI test applications, not the Helix device test suites.
Generated by /review run-tests. A targeted run is a fast signal, not full-suite certification.
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!
This pull request refactors and enhances the ProgressBar feature matrix test page, moving from code-behind event handling to a more MVVM-compliant approach. It introduces new properties and commands in the
ProgressBarViewModel, updates the XAML to use data binding and commands, and adds new UI tests to cover additional scenarios.UI and MVVM Refactoring:
The ProgressBar control page (
ProgressBarControlPage.xaml) now uses data binding and commands for nearly all interactions, replacing code-behind event handlers for color changes, visibility, flow direction, shadow, and progress updates. New converters are introduced for boolean and enum handling. The UI gains a new "IsEnabled" toggle and improved radio button grouping for various properties. [1] [2] [3] [4] [5] [6] [7]The code-behind (
ProgressBarControlPage.xaml.cs) is greatly simplified: most event handlers and manual control instantiations are removed. The page now relies on the view model for state management, and the reset logic is improved to clear animations and restore bindings.ViewModel Enhancements:
ProgressBarViewModeladds properties forProgressText,ProgressToText,IsEnabled, andHasShadow, along with corresponding logic to parse and update values. Commands for changing progress and background colors are implemented, and aResetmethod is introduced to restore default values. [1] [2] [3] [4]Test Improvements:
ProgressBarFeatureTests.cs) are updated to use NUnit's[Category]attribute at the class level and add new ordered test cases to validate setting progress to 0 and 1, ensuring correct label updates. [1] [2] [3] [4]Issue Identified: