-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fixed Microsoft.Maui.Controls 8.0.90 (Latest stable) Ruins Entry Controls #25006
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
9670c6a
Fixed Microsoft.Maui.Controls 8.0.90 (Latest stable) Ruins Entry Cont…
NirmalKumarYuvaraj 270b996
Added test cases
NirmalKumarYuvaraj 17c6812
Merge branch 'main' of https://github.com/NirmalKumarYuvaraj/maui int…
NirmalKumarYuvaraj 606bd95
updated test case method name
NirmalKumarYuvaraj 54a6883
Added automation id
NirmalKumarYuvaraj 269de76
Added pending test snapshot
jsuarezruiz 8cdf977
Added images for android and IOS
NirmalKumarYuvaraj b6378fa
Merge branch 'fix-24783' of https://github.com/NirmalKumarYuvaraj/mau…
NirmalKumarYuvaraj b7245c3
Fixed Microsoft.Maui.Controls 8.0.90 (Latest stable) Ruins Entry Cont…
NirmalKumarYuvaraj 02850ce
Added test cases
NirmalKumarYuvaraj 18fffcf
updated test case method name
NirmalKumarYuvaraj 2a5eb1a
Added automation id
NirmalKumarYuvaraj 6709a0a
Added images for android and IOS
NirmalKumarYuvaraj 3f66bbb
Added pending test snapshot
jsuarezruiz daef7ed
Modified ios image
NirmalKumarYuvaraj 15000b8
Merge branch 'fix-24783' of https://github.com/NirmalKumarYuvaraj/mau…
NirmalKumarYuvaraj 6f24a10
revert unwanted changes
NirmalKumarYuvaraj 586f5c2
Revert "Added pending test snapshot"
NirmalKumarYuvaraj 8d50a3c
Merge branch 'fix-24783' of https://github.com/NirmalKumarYuvaraj/mau…
NirmalKumarYuvaraj 8d59b7b
modified code changes
NirmalKumarYuvaraj dd65898
Revert "Added pending test snapshot"
NirmalKumarYuvaraj 50a8a12
Reapply "Added pending test snapshot"
NirmalKumarYuvaraj 4ca5d38
Added pending test snapshot
jsuarezruiz 1517643
dummy
NirmalKumarYuvaraj ddd13dd
Merge branch 'fix-24783' of https://github.com/NirmalKumarYuvaraj/mau…
NirmalKumarYuvaraj 866f6ce
Revert "Merge branch 'fix-24783' of https://github.com/NirmalKumarYuv…
NirmalKumarYuvaraj f036290
Revert "Merge branch 'fix-24783' of https://github.com/NirmalKumarYuv…
NirmalKumarYuvaraj 9b5c9a2
reverted all the changes
NirmalKumarYuvaraj c99cbc9
Added missing test cases and images
NirmalKumarYuvaraj 8c1d745
removed unwanted images and files
NirmalKumarYuvaraj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+32.1 KB
.../TestCases.Android.Tests/snapshots/android/VerifyEntryClearButtonVisibility.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
src/Controls/tests/TestCases.HostApp/Issues/Issue25038.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:local="clr-namespace:Maui.Controls.Sample.Issues" | ||
x:Class="Maui.Controls.Sample.Issues.Issue25038"> | ||
|
||
<StackLayout Padding="20"> | ||
<!-- First test case: Grid with entry having ClearButtonVisibility set to Never --> | ||
<Grid x:Name="firstEntryGrid" IsVisible="False"> | ||
<Entry Text="Initial ClearButton Never Entry" x:Name="initialEntry" ClearButtonVisibility="Never" /> | ||
</Grid> | ||
|
||
<!-- Second test case: Grid with entry where ClearButtonVisibility changes dynamically --> | ||
<Grid x:Name="secondEntryGrid" IsVisible="False"> | ||
<Entry Text="Dynamic ClearButton Entry" x:Name="dynamicClearButtonEntry" ClearButtonVisibility="WhileEditing" /> | ||
</Grid> | ||
|
||
<!-- Button to trigger the changes --> | ||
<Button Text="Show Entries" AutomationId="button" Clicked="OnShowEntriesClicked"/> | ||
</StackLayout> | ||
</ContentPage> |
27 changes: 27 additions & 0 deletions
27
src/Controls/tests/TestCases.HostApp/Issues/Issue25038.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Microsoft.Maui.Controls.Internals; | ||
|
||
namespace Maui.Controls.Sample.Issues | ||
{ | ||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
[Preserve(AllMembers = true)] | ||
[Issue(IssueTracker.Github, 25038, "MAUI Entry in Windows always shows ClearButton if initially hidden and shown even if ClearButtonVisibility set to 'Never'", PlatformAffected.UWP)] | ||
public partial class Issue25038 : ContentPage | ||
{ | ||
public Issue25038() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void OnShowEntriesClicked(object sender, EventArgs e) | ||
{ | ||
// Show the first Grid | ||
firstEntryGrid.IsVisible = true; | ||
|
||
// Show the second Grid | ||
secondEntryGrid.IsVisible = true; | ||
|
||
// Change ClearButtonVisibility of the second Entry to Never | ||
dynamicClearButtonEntry.ClearButtonVisibility = ClearButtonVisibility.Never; | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue25038.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using NUnit.Framework; | ||
using UITest.Appium; | ||
using UITest.Core; | ||
|
||
namespace Microsoft.Maui.TestCases.Tests.Issues | ||
{ | ||
public class Issue25038 : _IssuesUITest | ||
{ | ||
public Issue25038(TestDevice testDevice) : base(testDevice) | ||
{ | ||
} | ||
|
||
public override string Issue => "MAUI Entry in Windows always shows ClearButton if initially hidden and shown even if ClearButtonVisibility set to 'Never'"; | ||
|
||
[Test] | ||
[Category(UITestCategories.Entry)] | ||
[FailsOnMac] | ||
public void VerifyEntryClearButtonVisibility() | ||
{ | ||
App.WaitForElement("button"); | ||
App.Tap("button"); | ||
VerifyScreenshot(); | ||
} | ||
} | ||
} |
Binary file added
BIN
+9.25 KB
...ts/TestCases.WinUI.Tests/snapshots/windows/VerifyEntryClearButtonVisibility.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.5 KB
...ls/tests/TestCases.iOS.Tests/snapshots/ios/VerifyEntryClearButtonVisibility.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Triggered the build, it should generate the reference snapshot for this test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, already added the test snapshot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the images