[net11] Update test resource URL and resave test image#36100
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 36100Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 36100" |
|
Hey there @@SubhikshaSf4851! 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 |
|
Azure Pipelines successfully started running 3 pipeline(s). |
…gistration
Two changes to resolve the IL2009 warning that fails AOT integration tests:
1. Rename [Register("__UIGestureRecognizer")] to a unique name to avoid
duplicate ObjC class registration with the SDK's internal type.
2. Remove redundant [Preserve(Conditional = true)] on Activated(). The
[Export("target:")] attribute already makes it a static-registrar root
under full trimming. The [Preserve] generated a preserve descriptor in
apply-preserve-attribute.xml that the linker couldn't resolve against
UIKit.UIGestureRecognizer.Callback<T>, causing IL2009.
Fixes: dotnet#36081
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ce79737 to
876ce18
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
f9b98c4 to
2b2df4f
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates MAUI Controls WebView-related test pages and UI tests to avoid using real-world external domains by switching navigation URLs and cookie-domain expectations to example.com (and related example.* domains), and refreshes a Mac snapshot baseline used by Issue16918Test to address a CI baseline mismatch.
Changes:
- Replace WebView URL sources in HostApp test pages from
microsoft.com/github.com/dotnet.microsoft.comtoexample.comvariants. - Update WebView cookie-management UI test assertions to expect
example.comas the displayed cookie domain. - Refresh the Mac visual snapshot baseline image for
Issue16918Test.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/WebViewFeatureTests.cs | Updates cookie-domain assertion to match the new example.com-based URL source. |
| src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue4720.cs | Replaces the WebView URL used by the Issue4720 repro page with an example.com URL. |
| src/Controls/tests/TestCases.HostApp/Issues/Issue21846Modal.xaml | Updates modal WebView source URL to www.example.com. |
| src/Controls/tests/TestCases.HostApp/Issues/Issue12134.cs | Updates cookie domain and WebView navigation URL from dotnet.microsoft.com to example.com. |
| src/Controls/tests/TestCases.HostApp/FeatureMatrix/WebView/WebViewOptionsPage.xaml.cs | Replaces button-driven URLs and embedded HTML navigation links with example.com variants for WebView feature testing. |
| src/Controls/tests/TestCases.Mac.Tests/snapshots/mac/Issue16918Test.png | Updates Mac snapshot baseline for Issue16918Test. |
| _viewModel.Source = new UrlWebViewSource | ||
| { | ||
| Url = "https://www.microsoft.com" | ||
| Url = "https://www.example.com" | ||
| }; |
| <p><a href='https://www.example.com'>Go to Page 2 (Microsoft)</a></p> | ||
| <p><a href='https://www.example.com'>Go to Page 3 (GitHub)</a></p> |
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 whether this change resolves your issue. Thank you!
Description of Change
Test URL and domain updates:
microsoft.com,github.com, anddotnet.microsoft.com) toexample.comvariants in both code and XAML files. [1] [2] [3] [4]example.cominstead of external domains.Cookie handling and assertions:
example.comas the cookie domain, replacing previous references todotnet.microsoft.comandgithub.com. [1] [2]Update Mac UI test snapshot baseline for Issue16918Test
Issue16918Teston Mac, resolving the CI failure caused by an outdated reference image.