-
Notifications
You must be signed in to change notification settings - Fork 833
test: update sample tests for webview #20798
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
test: update sample tests for webview #20798
Conversation
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 updates the sample tests for WebView controls by enhancing existing functionality and adding new samples to test fixed height and clipping behaviors.
- Updated the WebView_Title sample with a new URL navigation handler and adjusted the TextBox width.
- Added two new samples: one to demonstrate a fixed-height WebView2 and another to test clipping with WebView2.
- Updated project items to include the new sample files.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/WebView/WebView_Title.xaml.cs | Added OnGoClicked method to handle URL navigation. |
| src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/WebView/WebView_Title.xaml | Increased TextBox width and hooked up the Button Click event. |
| src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/WebView/WebView2_Fixed_Height.xaml.cs | New sample demonstrating a fixed-height WebView2. |
| src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/WebView/WebView2_Fixed_Height.xaml | New sample UI for WebView2 with fixed height. |
| src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/WebView/WebView2_Clipping.xaml.cs | New sample demonstrating clipping with WebView2. |
| src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/WebView/WebView2_Clipping.xaml | New sample UI for WebView2 clipping tests. |
| src/SamplesApp/UITests.Shared/UITests.Shared.projitems | Updated to include the new WebView sample pages. |
Comments suppressed due to low confidence (1)
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/WebView/WebView_Title.xaml.cs:24
- In a UI event handler for a test sample, throwing an exception on invalid input may interrupt the test flow unexpectedly. Consider handling invalid URLs gracefully, such as by providing user feedback without an exception.
throw new ArgumentException("The provided URL is not valid.", nameof(UriInput));
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20798/wasm-skia-net9/index.html |
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20798/docs/index.html |
|
|
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/WebView/WebView_Title.xaml.cs
Outdated
Show resolved
Hide resolved
1f3271d to
82fd703
Compare
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20798/docs/index.html |
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20798/wasm-skia-net9/index.html |
1 similar comment
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20798/wasm-skia-net9/index.html |
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20798/docs/index.html |
|
|
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20798/docs/index.html |
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20798/wasm-skia-net9/index.html |
|
|
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20798/wasm-skia-net9/index.html |
86e505d to
5abfe4b
Compare
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20798/wasm-skia-net9/index.html |
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20798/docs/index.html |
|
|
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20798/wasm-skia-net9/index.html |
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20798/docs/index.html |
|
|
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20798/wasm-skia-net9/index.html |
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20798/docs/index.html |
|
|
5abfe4b to
6953106
Compare
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-20798/wasm-skia-net9/index.html |
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-20798/docs/index.html |
GitHub Issue: closes #
PR Type:
What is the current behavior? π€
What is the new behavior? π
PR Checklist β
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information βΉοΈ