Skip to content

[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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Copy link
Contributor

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.

@dotnet-policy-service dotnet-policy-service bot added community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration labels Jun 25, 2025
@NafeelaNazhir NafeelaNazhir added the area-testing Unit tests, device tests label Jun 25, 2025
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@NafeelaNazhir NafeelaNazhir marked this pull request as ready for review June 27, 2025 03:57
@Copilot Copilot AI review requested due to automatic review settings June 27, 2025 03:57
@NafeelaNazhir NafeelaNazhir requested a review from a team as a code owner June 27, 2025 03:57
Copy link
Contributor

@Copilot Copilot AI left a 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, and ScrollViewControlPage (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()
Copy link
Preview

Copilot AI Jun 27, 2025

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.

Suggested change
public void VerifyScrollViewWithScrollToPositionCenterAndHorizontalLayoutontentWhenOrientationHorizontal()
public void VerifyScrollViewWithScrollToPositionCenterAndHorizontalLayoutContentWhenOrientationHorizontal()

Copilot uses AI. Check for mistakes.

@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-scrollview ScrollView area-testing Unit tests, device tests community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants