Skip to content

[Testing] - Modified Feature matrix UITest Cases for Entry Control #30789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nivetha-nagalingam
Copy link
Contributor

This pull request makes updates to the EntryControlPage.xaml file to improve the layout and simplify the user interface by replacing the toolbar-based "Options" button with an in-page button. Below are the most important changes:

UI Layout Improvements:

  • Added an Options button directly within the page layout, with properties Text="Options", FontSize="11", and a Clicked event handler (NavigateToOptionsPage_Clicked). This replaces the toolbar item for better accessibility.

Code Simplification:

  • Removed the <ContentPage.ToolbarItems> section, which previously contained the "Options" button. This change simplifies the structure by consolidating the button into the main layout.

Minor Adjustments:

  • Adjusted the Margin property of the "Entry Control" label to improve spacing consistency in the layout.

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jul 23, 2025
Copy link
Contributor

Hey there @@nivetha-nagalingam! 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 Jul 23, 2025
@nivetha-nagalingam nivetha-nagalingam changed the title [Testing] - Feature matrix UITest Cases for Entry Control [Testing] - Modified Feature matrix UITest Cases for Entry Control Jul 23, 2025
@anandhan-rajagopal anandhan-rajagopal added the area-testing Unit tests, device tests label Jul 23, 2025
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending snapshots on Windows.
image
Could you commit the images?

@nivetha-nagalingam nivetha-nagalingam marked this pull request as ready for review July 25, 2025 07:15
@Copilot Copilot AI review requested due to automatic review settings July 25, 2025 07:15
@nivetha-nagalingam nivetha-nagalingam requested a review from a team as a code owner July 25, 2025 07:15
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the Entry Control test UI to improve accessibility and simplify the interface by moving the "Options" button from the toolbar to the main page layout. The changes also include UI adjustments and corresponding test updates to accommodate the new button placement.

Key changes:

  • Replaced toolbar-based "Options" button with an in-page button for better accessibility
  • Updated UI test automation to work with the new button location and flow
  • Made comprehensive font size adjustments throughout the options page for consistency

Reviewed Changes

Copilot reviewed 3 out of 155 changed files in this pull request and generated 5 comments.

File Description
EntryControlPage.xaml Moved "Options" button from toolbar to main page layout and adjusted label margin
EntryOptionsPage.xaml Replaced toolbar "Apply" button with in-page button, standardized font sizes to 10pt, and reorganized layout structure
EntryFeatureTests.cs Updated test automation to navigate through new Options flow and handle UI element changes

<Button Text="Apply"
FontSize="14"
Clicked="ApplyButton_Clicked"
AutomationId="ApplyButton"/>
Copy link
Preview

Copilot AI Jul 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The AutomationId has been changed from "Apply" to "ApplyButton". This could break existing tests that expect "Apply". AutomationIds should be unique and consistent across the codebase to ensure WaitForElement calls work correctly.

Copilot uses AI. Check for mistakes.

<Button Text="Options"
FontSize="11"
Clicked="NavigateToOptionsPage_Clicked"
AutomationId="OptionsButton"/>
Copy link
Preview

Copilot AI Jul 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new AutomationId "OptionsButton" differs from the test expectation of "Options". The test in EntryFeatureTests.cs expects AutomationId="Options" but this button uses "OptionsButton", which will cause test failures.

Copilot uses AI. Check for mistakes.

Comment on lines +93 to +94
App.WaitForElement("Apply");
App.Tap("Apply");
Copy link
Preview

Copilot AI Jul 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is expecting AutomationId="Apply" but the corresponding button in EntryOptionsPage.xaml now has AutomationId="ApplyButton". This will cause the test to fail when trying to locate the Apply button.

Suggested change
App.WaitForElement("Apply");
App.Tap("Apply");
App.WaitForElement("ApplyButton");
App.Tap("ApplyButton");

Copilot uses AI. Check for mistakes.

Comment on lines 808 to 809
App.WaitForElement("Apply");
App.Tap("Apply");
Copy link
Preview

Copilot AI Jul 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is expecting AutomationId="Apply" but the corresponding button in EntryOptionsPage.xaml now has AutomationId="ApplyButton". This will cause the test to fail when trying to locate the Apply button.

Suggested change
App.WaitForElement("Apply");
App.Tap("Apply");
App.WaitForElement("ApplyButton");
App.Tap("ApplyButton");

Copilot uses AI. Check for mistakes.

Comment on lines 911 to 912
App.WaitForElement("Apply");
App.Tap("Apply");
Copy link
Preview

Copilot AI Jul 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is expecting AutomationId="Apply" but the corresponding button in EntryOptionsPage.xaml now has AutomationId="ApplyButton". This will cause the test to fail when trying to locate the Apply button.

Suggested change
App.WaitForElement("Apply");
App.Tap("Apply");
App.WaitForElement("ApplyButton");
App.Tap("ApplyButton");

Copilot uses AI. Check for mistakes.

@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-entry Entry area-testing Unit tests, device tests community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants