Skip to content

[net11] Update test resource URL and resave test image#36100

Merged
jfversluis merged 5 commits into
dotnet:net11.0from
SubhikshaSf4851:Fix-35899
Jun 26, 2026
Merged

[net11] Update test resource URL and resave test image#36100
jfversluis merged 5 commits into
dotnet:net11.0from
SubhikshaSf4851:Fix-35899

Conversation

@SubhikshaSf4851

@SubhikshaSf4851 SubhikshaSf4851 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

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:

  • Changed all test WebView sources and navigation URLs from real-world domains (such as microsoft.com, github.com, and dotnet.microsoft.com) to example.com variants in both code and XAML files. [1] [2] [3] [4]
  • Updated test HTML content and hyperlinks to use example.com instead of external domains.

Cookie handling and assertions:

  • Modified cookie-related code and assertions to use example.com as the cookie domain, replacing previous references to dotnet.microsoft.com and github.com. [1] [2]

Update Mac UI test snapshot baseline for Issue16918Test

  • Refreshes the visual baseline snapshot used by the Issue16918Test on Mac, resolving the CI failure caused by an outdated reference image.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 36100

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 36100"

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Jun 24, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jun 24, 2026
@vishnumenon2684

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
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>
@vishnumenon2684

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@vishnumenon2684

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@vishnumenon2684

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@SubhikshaSf4851 SubhikshaSf4851 changed the title [WIP] [net11] Issue16918Test UI test fails with visual regression [net11] Update test resource URL and resave test image Jun 26, 2026
@vishnumenon2684
vishnumenon2684 marked this pull request as ready for review June 26, 2026 10:33
Copilot AI review requested due to automatic review settings June 26, 2026 10:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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.com to example.com variants.
  • Update WebView cookie-management UI test assertions to expect example.com as 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.

Comment on lines 52 to 55
_viewModel.Source = new UrlWebViewSource
{
Url = "https://www.microsoft.com"
Url = "https://www.example.com"
};
Comment on lines +91 to +92
<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>
@jfversluis
jfversluis merged commit 94b9cae into dotnet:net11.0 Jun 26, 2026
26 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants