maui icon indicating copy to clipboard operation
maui copied to clipboard

[Testing] Feature matrix UITest Cases for Entry Control

Open LogishaSelvarajSF4525 opened this issue 5 months ago • 3 comments

This PR includes a comprehensive set of UI test cases for the Entry control. The tests validate the Entry control, including properties such as Text, Placeholder, MaxLength, IsPassword, Keyboard, IsReadOnly, IsEnabled, IsVisible, ClearButtonVisibility, HorizontalTextAlignment, VerticalTextAlignment, CursorPosition, SelectionLength, IsSpellCheckEnabled, IsTextPredictionEnabled, ReturnType, ReturnCommand.

Entry Control Feature Matrix

  • Gallery Page Addition:

    • Added a new GalleryPageFactory entry for the EntryControlPage to the navigation structure in CorePageView.cs. This integrates the new feature matrix page into the test application's navigation.
  • Options Page Implementation:

    • Created EntryOptionsPage.xaml to showcase the Entry control's features. This page includes a StackLayout with various Entry controls demonstrating properties like Text, Placeholder, MaxLength, IsPassword, Keyboard, IsReadOnly, IsEnabled, IsVisible, ClearButtonVisibility, HorizontalTextAlignment, VerticalTextAlignment, CursorPosition, SelectionLength, IsSpellCheckEnabled, IsTextPredictionEnabled.
  • Main Page Implementation:

    • Added EntryControlPage.xaml.cs, which includes:
      • Initialization of the EntryViewModel for data binding.
      • Event handlers for Entry control events (TextChanged, Focused, Unfocused and Completed).
      • Methods to update cursor position and selection length programmatically.

Issues Identified

  • https://github.com/dotnet/maui/issues/29833
  • https://github.com/dotnet/maui/issues/26968
  • https://github.com/dotnet/maui/issues/29812

https://github.com/user-attachments/assets/00022d8a-9d3b-47de-afa0-5f79b57e02ac

LogishaSelvarajSF4525 avatar Jun 17 '25 13:06 LogishaSelvarajSF4525

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-UITests-public

jsuarezruiz avatar Jun 17 '25 13:06 jsuarezruiz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 17 '25 13:06 azure-pipelines[bot]

/azp run MAUI-UITests-public

jsuarezruiz avatar Jun 18 '25 06:06 jsuarezruiz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 18 '25 06:06 azure-pipelines[bot]

/azp run MAUI-UITests-public

jsuarezruiz avatar Jun 20 '25 06:06 jsuarezruiz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 20 '25 06:06 azure-pipelines[bot]

/azp run MAUI-UITests-public

jsuarezruiz avatar Jun 20 '25 06:06 jsuarezruiz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 20 '25 06:06 azure-pipelines[bot]

The test VerifyClearButtonVisiblityWhenTextPresentOrEmpty is failing on iOS. Snapshot different than baseline: ClearButtonVisiblityButton_TextPresent.png (3.79% difference) image

@jsuarezruiz I have committed this snapshot in the latest changes.

LogishaSelvarajSF4525 avatar Jun 20 '25 11:06 LogishaSelvarajSF4525

/azp run MAUI-UITests-public

jsuarezruiz avatar Jun 23 '25 13:06 jsuarezruiz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 23 '25 13:06 azure-pipelines[bot]

The failing test RotatingCollectionViewWithHTMLShouldNotHangOrCrash, is not related with the PR changes.

jsuarezruiz avatar Jun 26 '25 11:06 jsuarezruiz