diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21787.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21787.cs new file mode 100644 index 000000000000..ba12f1e45ce7 --- /dev/null +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21787.cs @@ -0,0 +1,23 @@ +#if WINDOWS +using NUnit.Framework; +using UITest.Appium; +using UITest.Core; + +namespace Microsoft.Maui.TestCases.Tests.Issues; + +public class Issue21787 : _IssuesUITest +{ + public Issue21787(TestDevice device) : base(device) { } + + public override string Issue => "[Windows] Remove workaround for label text decorations"; + + [Test] + public void LabelTextDecorationsWorks() + { + App.WaitForElement("TestButton"); + App.Tap("TestButton"); + + VerifyScreenshot(); + } +} +#endif \ No newline at end of file diff --git a/src/Controls/tests/TestCases.WinUI.Tests/snapshots/windows/LabelTextDecorationsWorks.png b/src/Controls/tests/TestCases.WinUI.Tests/snapshots/windows/LabelTextDecorationsWorks.png new file mode 100644 index 000000000000..995c24ae5070 Binary files /dev/null and b/src/Controls/tests/TestCases.WinUI.Tests/snapshots/windows/LabelTextDecorationsWorks.png differ diff --git a/src/Controls/tests/TestCases/Issues/Issue21787.xaml b/src/Controls/tests/TestCases/Issues/Issue21787.xaml new file mode 100644 index 000000000000..aa467417f288 --- /dev/null +++ b/src/Controls/tests/TestCases/Issues/Issue21787.xaml @@ -0,0 +1,16 @@ + + + +