Skip to content

[Testing] Refactoring Feature Matrix UITest Cases for ProgressBar Control - #40469

Merged
kubaflo merged 13 commits into
dotnet:net11from
HarishKumarSF4517:refactoring-progressbar-feature
Nov 30, 2026
Merged

kubaflo merged 13 commits into
dotnet:net11from
HarishKumarSF4517:refactoring-progressbar-feature

Conversation

@HarishKumarSF4517

@HarishKumarSF4517 HarishKumarSF4517 commented Nov 20, 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!

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:

  • ProgressBarViewModel adds properties for ProgressText, ProgressToText, IsEnabled, and HasShadow, along with corresponding logic to parse and update values. Commands for changing progress and background colors are implemented, and a Reset method is introduced to restore default values. [1] [2] [3] [4]

Test Improvements:

  • The ProgressBar UI tests (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:

  1. [Android, Windows] ProgressColor is not reset to its default value(null) #40370

@github-actions

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

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

This comment has been minimized.

@Ahamed-Ali
Ahamed-Ali changed the base branch from main to net11 November 20, 2026 10:48
@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Nov 20, 2026
@kubaflo

kubaflo commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

/review run-tests

@MauiBot

MauiBot commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@HarishKumarSF4517 — existing-test verification; Setup did not capture a tested commit.

Result INCONCLUSIVE Platform Android


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

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 20, 2026
@HarishKumarSF4517
HarishKumarSF4517 force-pushed the refactoring-progressbar-feature branch from 69eb87a to 05cb523 Compare November 20, 2026 10:56
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@HarishKumarSF4517
HarishKumarSF4517 force-pushed the refactoring-progressbar-feature branch from 05cb523 to 4cd2ca3 Compare November 20, 2026 11:06
@vishnumenon2684

This comment has been minimized.

@vishnumenon2684 vishnumenon2684 added the community ✨ Community Contribution label Nov 20, 2026
@azure-pipelines

This comment has been minimized.

@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 Nov 20, 2026
@MauiBot

MauiBot commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@HarishKumarSF4517 — existing-test verification; Setup did not capture a tested commit.

Result INCONCLUSIVE Platform Android


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

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 20, 2026

@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 — 2 findings

Reviewed commit 4cd2ca3.

See inline comments for details.

@HarishKumarSF4517
HarishKumarSF4517 force-pushed the refactoring-progressbar-feature branch from 5605a34 to 0b3aa6c Compare November 27, 2026 04:48
HarishKumarSF4517 and others added 2 commits November 27, 2026 10:20
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions

This comment has been minimized.

@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 — 4 findings

Reviewed commit 42c6cf5.

See inline comments for details.

@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@vishnumenon2684

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@github-actions

This comment has been minimized.

@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 — 4 findings

Reviewed commit 42c6cf5.

See inline comments for details.

@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions

This comment has been minimized.

@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 — 3 findings

Reviewed commit 640c43b.

See inline comments for details.

Previously reported findings were not duplicated.

@Ahamed-Ali
Ahamed-Ali marked this pull request as ready for review November 30, 2026 05:11
@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@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 — 3 findings

Reviewed commit 640c43b.

See inline comments for details.

@github-actions

Copy link
Copy Markdown
Contributor

Selected Tests

@kubaflo — AI-selected UI tests and device tests (GPT-6.2 Sol + MAI Code 2) for commit 640c43ba.

Result NOT QUEUED Platforms Android, iOS, MacCatalyst, Windows Tests 2 UI, 0 device Commit 640c43ba


🧪 Test selection — click to expand
Suite Result Selected Build
UI tests ❌ not queued 2 of 77 categories —
Device tests ➖ nothing to run none —
🧪 UI tests — ProgressBar, Material3 on Android, iOS, MacCatalyst, Windows

❌ Could not queue maui-pr-uitests: Azure Pipelines did not start maui-pr-uitests for the dispatch branch run-tests/pr40469-46363858205 within 10 minutes. Comment /review run-tests again, or use /azp run maui-pr-uitests for the full suite.

GPT-6.2 Sol: The ProgressBar Feature Matrix refactor needs ProgressBar UI tests on all four platforms and Material3 UI tests on Android.
MAI Code 2: ProgressBar feature-matrix UI test refactor; run ProgressBar coverage on all UI platforms and Material3 coverage on Android.

🧪 Running — 2 categories on Android, iOS, MacCatalyst, Windows

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 run ProgressBar on Android, iOS, MacCatalyst, and Windows.
  • The shared Material3 ProgressBar tests and Android Material3 snapshots changed, so include Material3 on 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.

@kubaflo
kubaflo merged commit 45668de into dotnet:net11 Nov 30, 2026
126 of 127 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants