[Testing] Feature matrix UITest Cases for WebView Control#30517
Merged
Conversation
Contributor
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a comprehensive suite of UI tests and supporting pages for the WebView control’s feature matrix, covering properties, navigation, events, JavaScript evaluation, cookie management, visibility, shadow, and reload functionality.
- Adds extensive NUnit/Appium tests in
WebViewFeatureTests.csto validate WebView APIs and events. - Implements
WebViewViewModel, control page, and options page in the HostApp to drive and display WebView scenarios. - Registers the new WebView gallery page in the core gallery view.
Reviewed Changes
Copilot reviewed 7 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/WebViewFeatureTests.cs | New UI tests for WebView properties, navigation, events, JS, cookies, reload, visibility, and shadow. |
| src/Controls/tests/TestCases.HostApp/FeatureMatrix/WebView/WebViewViewModel.cs | ViewModel that manages WebView state, commands, events, and cookie logic for tests. |
| src/Controls/tests/TestCases.HostApp/FeatureMatrix/WebView/WebViewOptionsPage.xaml(.cs) | Options page UX for selecting sources, cookie ops, visibility, and shadow settings. |
| src/Controls/tests/TestCases.HostApp/FeatureMatrix/WebView/WebViewControlPage.xaml(.cs) | Main control page displaying WebView and status labels with data bindings and event hooks. |
| src/Controls/tests/TestCases.HostApp/CoreViews/CorePageView.cs | Added registration of “WebView Feature Matrix” in the gallery. |
Comments suppressed due to low confidence (2)
src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/WebViewFeatureTests.cs:14
- The constant name and AutomationId use "Github"; the correct brand casing is "GitHub" for consistency.
public const string GithubUrlButton = "GithubUrlButton";
src/Controls/tests/TestCases.HostApp/FeatureMatrix/WebView/WebViewControlPage.xaml:129
- A UI element is exposed for the ProcessTerminated event, but there’s no corresponding UITest in
WebViewFeatureTests.csto verify process termination behavior.
AutomationId="ProcessTerminatedStatusLabel"
Contributor
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
/rebase |
Contributor
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
jsuarezruiz
approved these changes
Sep 10, 2025
PureWeen
added a commit
that referenced
this pull request
Sep 18, 2025
* Added WebView Feature Tests * Added base image * Updated the test case --------- Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
PureWeen
added a commit
that referenced
this pull request
Sep 18, 2025
* Added WebView Feature Tests * Added base image * Updated the test case --------- Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 18, 2025
* Added WebView Feature Tests * Added base image * Updated the test case --------- Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 23, 2025
* Added WebView Feature Tests * Added base image * Updated the test case --------- Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 23, 2025
* Added WebView Feature Tests * Added base image * Updated the test case --------- Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR includes a comprehensive set of UI test cases for the WebView control. The tests validate the WebView control, including properties such as Source, CanGoBack, CanGoForward, events such as Navigating and Navigated Events, methods like GoBack, GoForward, EvaluateJavaScriptAsync and Reload.
WebView Feature Matrix :
WebView Control Testing:
Source,Cookies, andIsVisible, along with event handlers forNavigating,Navigated, andProcessTerminatedevents. [1] [2]Navigation and Content Testing:
Cookie Management:
Issues Identified
Screen.Recording.2025-07-10.at.9.47.32.AM.mov