Repository navigation
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37111Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 37111" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
|
Hey there @@LogishaSelvarajSF4525! 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 maui-pr-uitests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
Tests Failure Analysis
Test Failure Review: Not ready - click to expandOverall verdict: Not ready. Of 95 distinct failures, 93 are deterministic regressions whose legs were green across five recent
Coverage: 160 checks · 150 passing · 10 failing · 0 pending · 0 inaccessible · 1 unmapped · 23 unexplained build legs · 0 unaccounted failing checks · 1 aborted failing check · 0 canceled-build checks · 0 device-test unverified · 2 unattributed · 93 regressed-vs-base. Deterministic ceiling: Not ready — 93 regressions were proven against base; Build Analysis was unmapped, 23 failed legs were unexplained, two failures were unattributed, and one UI check was aborted. Builds (this PR): maui-pr #1540838, maui-pr-uitests #1541042. Base sampling ( Recommended actionFix the Entry UI regressions and navigation timeout, then rerun CI and inspect the unexplained and cancelled records before merging. |
|
/azp run maui-pr-uitests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
This reverts commit 2134a8b.
|
/azp run maui-pr-uitests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
This PR refactors the Entry Feature Matrix HostApp pages and corresponding UI tests to expand coverage (e.g., BackgroundColor/Opacity/WidthRequest), improve testability (more AutomationIds and text-driven option inputs), and reduce flakiness by consolidating keyboard/screenshot handling helpers.
Changes:
- Expanded Entry options + ViewModel surface area (BackgroundColor, Opacity, WidthRequest) and added a ViewModel
Reset()used when navigating to the options page. - Reworked HostApp UI (AutomationIds, layout, and options UI) to better support automated testing scenarios.
- Updated FeatureMatrix UI tests (Entry + Material3 Entry) to cover more permutations and add keyboard-handling helpers.
Reviewed changes
Copilot reviewed 9 out of 296 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3EntryFeatureTests.cs | Refactors/expands Material3 Entry feature-matrix UI tests and adds keyboard/screenshot helpers. |
| src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/EntryFeatureTests.cs | Expands and reorders Entry feature-matrix tests; adds keyboard helper methods and more assertions. |
| src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryMaterial3/Material3_EntryControlPage.xaml.cs | Uses EntryViewModel.Reset() and updates cursor-position handler to be text-driven. |
| src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryMaterial3/Material3_EntryControlPage.xaml | Adds bindable props + AutomationIds and reworks “Options” UI to a button. |
| src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryControl/EntryViewModel.cs | Adds new bindable properties, derived label values, and a comprehensive Reset() method. |
| src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryControl/EntryOptionsPage.xaml.cs | Refactors option handlers (e.g., color selection via AutomationId) and adds handlers for new properties. |
| src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryControl/EntryOptionsPage.xaml | Reorganizes options UI, adds new controls for BackgroundColor/Opacity/WidthRequest, and updates AutomationIds. |
| src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryControl/EntryControlPage.xaml.cs | Uses EntryViewModel.Reset() and updates cursor-position handler to be text-driven. |
| src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryControl/EntryControlPage.xaml | Adds bindable props, updates AutomationIds, and adds keyboard/return-type value labels. |
Suppressed comments (2)
src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryControl/EntryControlPage.xaml.cs:57
SelectionLength_Clickedis wired up from XAML viaTextChanged="SelectionLength_Clicked", but the handler signature currently takesEventArgs. This will fail XAML event hookup at runtime becauseTextChangedexpectsTextChangedEventArgs.
src/Controls/tests/TestCases.HostApp/FeatureMatrix/EntryMaterial3/Material3_EntryControlPage.xaml.cs:50SelectionLength_Clickedis used as aTextChangedhandler from XAML (TextChanged="SelectionLength_Clicked"), but the method signature currently takesEventArgs. This will throw during XAML event hookup becauseTextChangedrequiresTextChangedEventArgs.
| private void VerifyScreenshotWithKeyboardHandling(string? screenshotName = null) | ||
| { if (App.IsKeyboardShown()) | ||
| App.DismissKeyboard(); | ||
|
|
||
| // Using cropping instead of DismissKeyboard() on iOS to maintain focus during testing | ||
| if (string.IsNullOrEmpty(screenshotName)) | ||
| VerifyScreenshot(cropBottom: CropBottomValue); | ||
| else | ||
| VerifyScreenshot(screenshotName, cropBottom: CropBottomValue); |
| private void HideSoftKeyboardAfterFocus() | ||
| { | ||
| #if ANDROID | ||
| Assert.That(App.WaitForKeyboardToShow(TimeSpan.FromSeconds(5)), Is.True, | ||
| "The Android keyboard did not appear after the Entry received focus."); | ||
| App.DismissKeyboard(); | ||
| Assert.That(App.WaitForKeyboardToHide(TimeSpan.FromSeconds(5)), Is.True, | ||
| "The Android keyboard remained visible after dismissal."); | ||
| #else | ||
| HideSoftKeyboardIfVisible(); | ||
| #endif | ||
| } |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…37111) This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as `BackgroundColor`, `Opacity`, and `WidthRequest`), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility. **Feature and UI enhancements:** * Added bindable properties `BackgroundColor`, `Opacity`, and `WidthRequest` to the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32) [[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) * Added new labels to display the current keyboard type and return type in the UI, and updated the ViewModel to provide these values (`EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) [[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) **Event handler and logic improvements:** * Updated event handlers to use `TextChanged` events for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134) [[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318) * Refactored color selection logic for text and placeholder colors to use `AutomationId` instead of background color, increasing reliability in UI tests (`EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60) * Added a new reset method to the ViewModel to restore all properties to their default values, and updated the navigation logic to call this method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`). [[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348) [[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) **UI and accessibility updates:** * Added `AutomationId` values to key UI elements for improved automated testing and accessibility (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20) * Adjusted font sizes for consistency and improved label clarity, and reorganized UI elements for better structure and accessibility (`EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78) [[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages. Issue Identified: - #34611 - #29805 --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…37111) This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as `BackgroundColor`, `Opacity`, and `WidthRequest`), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility. **Feature and UI enhancements:** * Added bindable properties `BackgroundColor`, `Opacity`, and `WidthRequest` to the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32) [[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) * Added new labels to display the current keyboard type and return type in the UI, and updated the ViewModel to provide these values (`EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) [[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) **Event handler and logic improvements:** * Updated event handlers to use `TextChanged` events for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134) [[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318) * Refactored color selection logic for text and placeholder colors to use `AutomationId` instead of background color, increasing reliability in UI tests (`EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60) * Added a new reset method to the ViewModel to restore all properties to their default values, and updated the navigation logic to call this method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`). [[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348) [[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) **UI and accessibility updates:** * Added `AutomationId` values to key UI elements for improved automated testing and accessibility (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20) * Adjusted font sizes for consistency and improved label clarity, and reorganized UI elements for better structure and accessibility (`EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78) [[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages. Issue Identified: - #34611 - #29805 --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…37111) This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as `BackgroundColor`, `Opacity`, and `WidthRequest`), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility. **Feature and UI enhancements:** * Added bindable properties `BackgroundColor`, `Opacity`, and `WidthRequest` to the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32) [[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) * Added new labels to display the current keyboard type and return type in the UI, and updated the ViewModel to provide these values (`EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) [[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) **Event handler and logic improvements:** * Updated event handlers to use `TextChanged` events for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134) [[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318) * Refactored color selection logic for text and placeholder colors to use `AutomationId` instead of background color, increasing reliability in UI tests (`EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60) * Added a new reset method to the ViewModel to restore all properties to their default values, and updated the navigation logic to call this method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`). [[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348) [[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) **UI and accessibility updates:** * Added `AutomationId` values to key UI elements for improved automated testing and accessibility (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20) * Adjusted font sizes for consistency and improved label clarity, and reorganized UI elements for better structure and accessibility (`EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78) [[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages. Issue Identified: - #34611 - #29805 --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…37111) This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as `BackgroundColor`, `Opacity`, and `WidthRequest`), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility. **Feature and UI enhancements:** * Added bindable properties `BackgroundColor`, `Opacity`, and `WidthRequest` to the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32) [[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) * Added new labels to display the current keyboard type and return type in the UI, and updated the ViewModel to provide these values (`EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) [[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) **Event handler and logic improvements:** * Updated event handlers to use `TextChanged` events for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134) [[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318) * Refactored color selection logic for text and placeholder colors to use `AutomationId` instead of background color, increasing reliability in UI tests (`EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60) * Added a new reset method to the ViewModel to restore all properties to their default values, and updated the navigation logic to call this method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`). [[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348) [[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) **UI and accessibility updates:** * Added `AutomationId` values to key UI elements for improved automated testing and accessibility (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20) * Adjusted font sizes for consistency and improved label clarity, and reorganized UI elements for better structure and accessibility (`EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78) [[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages. Issue Identified: - #34611 - #29805 --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…37111) This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as `BackgroundColor`, `Opacity`, and `WidthRequest`), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility. **Feature and UI enhancements:** * Added bindable properties `BackgroundColor`, `Opacity`, and `WidthRequest` to the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32) [[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) * Added new labels to display the current keyboard type and return type in the UI, and updated the ViewModel to provide these values (`EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) [[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) **Event handler and logic improvements:** * Updated event handlers to use `TextChanged` events for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134) [[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318) * Refactored color selection logic for text and placeholder colors to use `AutomationId` instead of background color, increasing reliability in UI tests (`EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60) * Added a new reset method to the ViewModel to restore all properties to their default values, and updated the navigation logic to call this method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`). [[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348) [[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) **UI and accessibility updates:** * Added `AutomationId` values to key UI elements for improved automated testing and accessibility (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20) * Adjusted font sizes for consistency and improved label clarity, and reorganized UI elements for better structure and accessibility (`EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78) [[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages. Issue Identified: - #34611 - #29805 --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…37111) This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as `BackgroundColor`, `Opacity`, and `WidthRequest`), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility. **Feature and UI enhancements:** * Added bindable properties `BackgroundColor`, `Opacity`, and `WidthRequest` to the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32) [[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) * Added new labels to display the current keyboard type and return type in the UI, and updated the ViewModel to provide these values (`EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) [[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) **Event handler and logic improvements:** * Updated event handlers to use `TextChanged` events for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134) [[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318) * Refactored color selection logic for text and placeholder colors to use `AutomationId` instead of background color, increasing reliability in UI tests (`EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60) * Added a new reset method to the ViewModel to restore all properties to their default values, and updated the navigation logic to call this method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`). [[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348) [[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) **UI and accessibility updates:** * Added `AutomationId` values to key UI elements for improved automated testing and accessibility (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20) * Adjusted font sizes for consistency and improved label clarity, and reorganized UI elements for better structure and accessibility (`EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78) [[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages. Issue Identified: - #34611 - #29805 --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…37111) This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as `BackgroundColor`, `Opacity`, and `WidthRequest`), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility. **Feature and UI enhancements:** * Added bindable properties `BackgroundColor`, `Opacity`, and `WidthRequest` to the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32) [[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) * Added new labels to display the current keyboard type and return type in the UI, and updated the ViewModel to provide these values (`EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) [[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) **Event handler and logic improvements:** * Updated event handlers to use `TextChanged` events for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134) [[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318) * Refactored color selection logic for text and placeholder colors to use `AutomationId` instead of background color, increasing reliability in UI tests (`EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60) * Added a new reset method to the ViewModel to restore all properties to their default values, and updated the navigation logic to call this method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`). [[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348) [[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) **UI and accessibility updates:** * Added `AutomationId` values to key UI elements for improved automated testing and accessibility (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20) * Adjusted font sizes for consistency and improved label clarity, and reorganized UI elements for better structure and accessibility (`EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78) [[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages. Issue Identified: - #34611 - #29805 --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…37111) This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as `BackgroundColor`, `Opacity`, and `WidthRequest`), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility. **Feature and UI enhancements:** * Added bindable properties `BackgroundColor`, `Opacity`, and `WidthRequest` to the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32) [[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) * Added new labels to display the current keyboard type and return type in the UI, and updated the ViewModel to provide these values (`EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) [[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) **Event handler and logic improvements:** * Updated event handlers to use `TextChanged` events for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134) [[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318) * Refactored color selection logic for text and placeholder colors to use `AutomationId` instead of background color, increasing reliability in UI tests (`EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60) * Added a new reset method to the ViewModel to restore all properties to their default values, and updated the navigation logic to call this method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`). [[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348) [[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) **UI and accessibility updates:** * Added `AutomationId` values to key UI elements for improved automated testing and accessibility (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20) * Adjusted font sizes for consistency and improved label clarity, and reorganized UI elements for better structure and accessibility (`EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78) [[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages. Issue Identified: - #34611 - #29805 --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…37111) This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as `BackgroundColor`, `Opacity`, and `WidthRequest`), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility. **Feature and UI enhancements:** * Added bindable properties `BackgroundColor`, `Opacity`, and `WidthRequest` to the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32) [[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) * Added new labels to display the current keyboard type and return type in the UI, and updated the ViewModel to provide these values (`EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) [[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) **Event handler and logic improvements:** * Updated event handlers to use `TextChanged` events for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134) [[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318) * Refactored color selection logic for text and placeholder colors to use `AutomationId` instead of background color, increasing reliability in UI tests (`EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60) * Added a new reset method to the ViewModel to restore all properties to their default values, and updated the navigation logic to call this method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`). [[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348) [[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) **UI and accessibility updates:** * Added `AutomationId` values to key UI elements for improved automated testing and accessibility (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20) * Adjusted font sizes for consistency and improved label clarity, and reorganized UI elements for better structure and accessibility (`EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78) [[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages. Issue Identified: - #34611 - #29805 --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…37111) This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as `BackgroundColor`, `Opacity`, and `WidthRequest`), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility. **Feature and UI enhancements:** * Added bindable properties `BackgroundColor`, `Opacity`, and `WidthRequest` to the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32) [[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) * Added new labels to display the current keyboard type and return type in the UI, and updated the ViewModel to provide these values (`EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) [[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) **Event handler and logic improvements:** * Updated event handlers to use `TextChanged` events for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134) [[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318) * Refactored color selection logic for text and placeholder colors to use `AutomationId` instead of background color, increasing reliability in UI tests (`EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60) * Added a new reset method to the ViewModel to restore all properties to their default values, and updated the navigation logic to call this method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`). [[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348) [[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) **UI and accessibility updates:** * Added `AutomationId` values to key UI elements for improved automated testing and accessibility (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20) * Adjusted font sizes for consistency and improved label clarity, and reorganized UI elements for better structure and accessibility (`EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78) [[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages. Issue Identified: - #34611 - #29805 --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…37111) This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as `BackgroundColor`, `Opacity`, and `WidthRequest`), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility. **Feature and UI enhancements:** * Added bindable properties `BackgroundColor`, `Opacity`, and `WidthRequest` to the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R42-R44) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75R42-R44) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L28-R32) [[4]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) * Added new labels to display the current keyboard type and return type in the UI, and updated the ViewModel to provide these values (`EntryControlPage.xaml`, `EntryViewModel.cs`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) [[2]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536L124-R136) [[3]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R180-R213) **Event handler and logic improvements:** * Updated event handlers to use `TextChanged` events for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (`EntryControlPage.xaml.cs`, `EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L124-R134) [[3]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L259-R318) * Refactored color selection logic for text and placeholder colors to use `AutomationId` instead of background color, increasing reliability in UI tests (`EntryOptionsPage.xaml.cs`). [[1]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L26-R31) [[2]](diffhunk://#diff-07ad3578095d6b7e4ef419d6921a7d43b5319bfd2970f669cb006118d1677de7L50-R60) * Added a new reset method to the ViewModel to restore all properties to their default values, and updated the navigation logic to call this method (`EntryViewModel.cs`, `EntryControlPage.xaml.cs`). [[1]](diffhunk://#diff-3f677ed4c454a245e3e82416c1a86b24aa0ade96b3b809d4cbedd7bc75534536R312-R348) [[2]](diffhunk://#diff-976ce0c4d44779d336f56a5b66c3d1d02d6b59783311ee99efb4f5d1eb58317fL39-L54) **UI and accessibility updates:** * Added `AutomationId` values to key UI elements for improved automated testing and accessibility (`EntryControlPage.xaml`, `Material3_EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28R10-L13) [[2]](diffhunk://#diff-f5e3ee56e4135c8dfd05cfce9bf234d413b52c8b6ce864a4ba0fca1ad004cc75L8-L20) * Adjusted font sizes for consistency and improved label clarity, and reorganized UI elements for better structure and accessibility (`EntryControlPage.xaml`). [[1]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L70-R78) [[2]](diffhunk://#diff-14e7f146267aafe278aab3e4cec14f9fc100e09ae21886569c33bffba87cff28L100-R131) These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages. Issue Identified: - #34611 - #29805 --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This pull request makes several improvements to the Entry control test pages and their supporting view models, focusing on expanding test coverage, improving UI accessibility, and enhancing code maintainability. The most significant changes include adding new bindable properties (such as
BackgroundColor,Opacity, andWidthRequest), updating event handler logic for better testability, and refining the ViewModel with new helpers and a reset method. Additionally, UI elements have been updated for consistency and accessibility.Feature and UI enhancements:
BackgroundColor,Opacity, andWidthRequestto the Entry controls and ViewModel, allowing these properties to be set and tested from the UI (EntryControlPage.xaml,Material3_EntryControlPage.xaml,EntryViewModel.cs). [1] [2] [3] [4]EntryControlPage.xaml,EntryViewModel.cs). [1] [2] [3]Event handler and logic improvements:
TextChangedevents for properties like cursor position, selection length, max length, width request, opacity, and height request, improving testability and code clarity (EntryControlPage.xaml.cs,EntryOptionsPage.xaml.cs). [1] [2] [3]AutomationIdinstead of background color, increasing reliability in UI tests (EntryOptionsPage.xaml.cs). [1] [2]EntryViewModel.cs,EntryControlPage.xaml.cs). [1] [2]UI and accessibility updates:
AutomationIdvalues to key UI elements for improved automated testing and accessibility (EntryControlPage.xaml,Material3_EntryControlPage.xaml). [1] [2]EntryControlPage.xaml). [1] [2]These changes collectively improve the testability, maintainability, and accessibility of the Entry control test pages.
Issue Identified: