Skip to content

Commit f807b2b

Browse files
[Testing] Enabling more UI Tests by removing platform specific condition - 7 (#27639)
* Platform Specific Cases * Platform specific cases * Updated the platform specific Cases. * Updated Changes * Update Issue18443.cs * Removed Unwanted snap * Update src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue24489.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Updated SnapShots --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 86793f4 commit f807b2b

File tree

23 files changed

+24
-32
lines changed

23 files changed

+24
-32
lines changed
-1 Bytes
Loading

src/Controls/tests/TestCases.HostApp/Issues/Issue16386.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Maui.Controls.Sample.Issues
22
{
3-
[Issue(IssueTracker.Github, 16386, "Process the hardware enter key as \"Done\"", PlatformAffected.Android)]
3+
[Issue(IssueTracker.Github, 16386, "Process the hardware enter key as Done", PlatformAffected.Android)]
44
public class Issue16386 : TestContentPage
55
{
66
protected override void Init()
8.61 KB
Loading

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue11333.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if ANDROID
1+
#if TEST_FAILS_ON_WINDOWS // For more information, see : https://github.com/dotnet/maui/issues/27638
22
using NUnit.Framework;
33
using UITest.Appium;
44
using UITest.Core;

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue11501.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if ANDROID || IOS
1+
#if ANDROID || IOS//The test fails on Windows and MacCatalyst because the BackgroundApp and ForegroundApp method, which is only supported on mobile platforms iOS and Android.
22
using NUnit.Framework;
33
using UITest.Appium;
44
using UITest.Core;

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue12079.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if WINDOWS
1+
#if TEST_FAILS_ON_WINDOWS // For more information, see : https://github.com/dotnet/maui/issues/27638
22
using NUnit.Framework;
33
using UITest.Appium;
44
using UITest.Core;
@@ -16,16 +16,14 @@ public Issue12079(TestDevice testDevice) : base(testDevice)
1616
public override string Issue => "SwipeView crash if Text not is set on SwipeItem";
1717

1818
[Test]
19-
[Ignore("Appium cannot find the SwipeControl, we have to review the reason.")]
2019
[Category(UITestCategories.SwipeView)]
2120
[Category(UITestCategories.Compatibility)]
2221
public void SwipeItemNoTextWindows()
2322
{
2423
App.WaitForElement(SwipeViewId);
2524
App.SwipeLeftToRight(SwipeViewId);
2625
App.Tap(SwipeViewId);
27-
App.WaitForNoElement("Success");
28-
App.Screenshot("The test has passed");
26+
App.WaitForElement("Success");
2927
}
3028
}
3129
}

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue16386.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#if ANDROID
21
using NUnit.Framework;
32
using UITest.Appium;
43
using UITest.Core;
@@ -11,7 +10,7 @@ public Issue16386(TestDevice device)
1110
: base(device)
1211
{ }
1312

14-
public override string Issue => "Process the hardware enter key as \"Done\"";
13+
public override string Issue => "Process the hardware enter key as Done";
1514

1615
[Test]
1716
[Category(UITestCategories.Entry)]
@@ -24,4 +23,3 @@ public void HittingEnterKeySendsDone()
2423
}
2524
}
2625
}
27-
#endif
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if ANDROID
2-
using NUnit.Framework;
1+
using NUnit.Framework;
32
using UITest.Appium;
43
using UITest.Core;
54
namespace Microsoft.Maui.TestCases.Tests.Issues
@@ -15,15 +14,13 @@ public Issue18443(TestDevice device) : base(device) { }
1514
public void EntrySelectionLengthRuntimeUpdate()
1615
{
1716
App.WaitForElement("entry");
18-
19-
Thread.Sleep(1000); // Wait some time for the keyboard to appear
20-
17+
Thread.Sleep(1000);
18+
#if ANDROID
2119
if (App.IsKeyboardShown())
2220
App.DismissKeyboard();
23-
21+
#endif
2422
VerifyScreenshot();
2523
}
2624

2725
}
28-
}
29-
#endif
26+
}

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18740.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if ANDROID
1+
#if ANDROID || IOS //This test case verifies "IsKeyboardShown method" exclusively on the Android and IOS platforms
22
using NUnit.Framework;
33
using NUnit.Framework.Legacy;
44
using UITest.Appium;

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21109.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if ANDROID
1+
#if ANDROID //This test case verifies "that the KeyListener is being set to handle numeric keyboard" exclusively on Android platform
22
using NUnit.Framework;
33
using NUnit.Framework.Legacy;
44
using UITest.Appium;

0 commit comments

Comments
 (0)