[Testing] Fix flaky UITests failing sometimes 3#27277
Conversation
There was a problem hiding this comment.
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Files not reviewed (1)
- src/Controls/tests/TestCases.HostApp/Issues/Issue21109.xaml: Language not supported
Comments suppressed due to low confidence (1)
src/Controls/tests/TestCases.HostApp/Controls/NoCaretEntry.cs:3
- Ensure that there are tests covering the behavior of the NoCaretEntry class.
public class NoCaretEntry : Entry
| #elif IOS | ||
| handler.PlatformView.TintColor = UIKit.UIColor.Clear; | ||
| #endif | ||
| } |
There was a problem hiding this comment.
Cannot change the Cursor color in WinUI. Intentional design decision and are not planning to change that. microsoft/microsoft-ui-xaml#8207
| if (view is NoCaretEntry) | ||
| { | ||
| #if ANDROID | ||
| handler.PlatformView.SetCursorVisible(false); |
There was a problem hiding this comment.
IOS already have a Platform Specific to set the Entry CursorColor https://learn.microsoft.com/en-us/dotnet/maui/ios/platform-specifics/entry-cursor-color?view=net-maui-9.0. We can create another Platform Specific doing the same on Android.
| { | ||
| public UITestEntryHandler() : base(EntryHandler.Mapper) | ||
| { | ||
| Mapper.AppendToMapping(nameof(IUITestEntry.IsCursorVisible), (handler, entry) => |
There was a problem hiding this comment.
Should we create a Platform Specific for Android and iOS adding this property?
Description of Change