-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Testing] Feature matrix UITest Cases for ScrollView Control #30188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[Testing] Feature matrix UITest Cases for ScrollView Control #30188
Conversation
Hey there @@NafeelaNazhir! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a full suite of UI test cases for the ScrollView control and implements the corresponding view model and pages in the HostApp to drive those tests.
- Introduces
ScrollViewFeatureTests.cs
with ordered UITest methods covering content types, orientations, scrolling positions, and properties. - Implements
ScrollViewViewModel
,ScrollViewOptionsPage
, andScrollViewControlPage
(XAML + code-behind) to power the feature matrix UI. - Registers the new ScrollView feature page in the gallery via
CorePageView.cs
.
Reviewed Changes
Copilot reviewed 7 out of 158 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ScrollViewFeatureTests.cs | New UITest methods validating ScrollView behaviors |
src/Controls/tests/TestCases.HostApp/FeatureMatrix/ScrollView/ScrollViewViewModel.cs | Added view model tracking ScrollView state and properties |
src/Controls/tests/TestCases.HostApp/FeatureMatrix/ScrollView/ScrollViewOptionsPage.xaml | New XAML UI for selecting ScrollView options |
src/Controls/tests/TestCases.HostApp/FeatureMatrix/ScrollView/ScrollViewOptionsPage.xaml.cs | Code-behind wiring option buttons |
src/Controls/tests/TestCases.HostApp/FeatureMatrix/ScrollView/ScrollViewControlPage.xaml | XAML UI for the ScrollView display and controls |
src/Controls/tests/TestCases.HostApp/FeatureMatrix/ScrollView/ScrollViewControlPage.xaml.cs | Code-behind handling navigation, scrolling events, and bindings |
src/Controls/tests/TestCases.HostApp/CoreViews/CorePageView.cs | Registered the new ScrollView feature matrix in the gallery |
Comments suppressed due to low confidence (2)
src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/ScrollViewFeatureTests.cs:333
- Method name is missing 'Layout' in 'AbsoluteContent'; it should be 'MakeVisibleAndAbsoluteLayoutContent' for consistency.
public void VerifyScrollViewWithScrollToPositionMakeVisibleAndAbsoluteContent()
src/Controls/tests/TestCases.HostApp/FeatureMatrix/ScrollView/ScrollViewOptionsPage.xaml.cs:38
- [nitpick] Local variable 'Imagewidth' should use camelCase (e.g. 'imageWidth') to follow C# naming conventions.
double Imagewidth = 1300;
|
||
[Test, Order(47)] | ||
[Category(UITestCategories.ScrollView)] | ||
public void VerifyScrollViewWithScrollToPositionCenterAndHorizontalLayoutontentWhenOrientationHorizontal() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in method name: 'Layoutontent' should be 'LayoutContent' to match the pattern of other tests.
public void VerifyScrollViewWithScrollToPositionCenterAndHorizontalLayoutontentWhenOrientationHorizontal() | |
public void VerifyScrollViewWithScrollToPositionCenterAndHorizontalLayoutContentWhenOrientationHorizontal() |
Copilot uses AI. Check for mistakes.
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
This PR includes a comprehensive set of UI test cases for the Scrollview control. The tests validate the ScrollView control, including properties such as Content, Orientation, HorizontalScrollBarVisibility, VerticalScrollBarVisibility, ScrollX , ScrollY, FlowDirection, IsEnabled, IsVisible.
Issues Identified
Screen.Recording.2025-06-25.at.12.10.57.PM.mov