Skip to content

Commit

Permalink
[Testing] Enabling ported UITests from Xamarin.UITests to Appium - 59 (
Browse files Browse the repository at this point in the history
…#26731)

* Updated Bugzilla Issues

* Reverts Bugzilla44461, Bugzilla41415, Bugzilla44176

---------

Co-authored-by: HarishKumarSF4517 <harish.kumar@syncfusion.com>
  • Loading branch information
anandhan-rajagopal and HarishKumarSF4517 authored Dec 23, 2024
1 parent 06af84d commit 227e582
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ public Bugzilla39636(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.LifeCycle)]
[Category(UITestCategories.Compatibility)]
[FailsOnAndroidWhenRunningOnXamarinUITest]
[FailsOnIOSWhenRunningOnXamarinUITest]
[FailsOnMacWhenRunningOnXamarinUITest]
public void DoesNotCrash()
{
App.WaitForElement("Success");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ public Bugzilla39668(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.ListView)]
[Category(UITestCategories.Compatibility)]
[FailsOnIOSWhenRunningOnXamarinUITest]
[FailsOnMacWhenRunningOnXamarinUITest]
public void Bugzilla39668Test()
{
App.WaitForNoElement("Success");
App.WaitForElement("Success");
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

using NUnit.Framework;
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

Expand All @@ -20,14 +19,11 @@ public Bugzilla39702(TestDevice testDevice) : base(testDevice)
[Category(UITestCategories.Entry)]
[Category(UITestCategories.Focus)]
[Category(UITestCategories.Compatibility)]
[FailsOnIOSWhenRunningOnXamarinUITest]
[FailsOnMacWhenRunningOnXamarinUITest]
public async Task ControlCanBeFocusedByUnfocusedEvent()
public void ControlCanBeFocusedByUnfocusedEvent()
{
App.WaitForElement(TheEntry);
await Task.Delay(4000);
App.EnterText(TheEntry, Success); // Should be typing into the Entry at this point
App.WaitForNoElement(Success);
App.EnterText(TheEntry, Success);
App.WaitForElement(Success);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public Bugzilla39821(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.Animation)]
[Category(UITestCategories.Compatibility)]
[Ignore("Fails intermittently")]
public void DoesNotCrash()
{
App.WaitForElement("Animate");
App.Tap("Animate");
App.WaitForNoElement("Success", timeout: TimeSpan.FromSeconds(25));
App.WaitForElement("Success");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ public Bugzilla41205(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.ListView)]
[Category(UITestCategories.Compatibility)]
[FailsOnIOSWhenRunningOnXamarinUITest]
[FailsOnMacWhenRunningOnXamarinUITest]
public void CreateDefaultPassesStringInsteadOfObject()
{
App.WaitForNoElement(Success);
App.WaitForElement(Success);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ public void Bugzilla41415Test()
}
}
}
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ public Bugzilla41619(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.LifeCycle)]
[Category(UITestCategories.Compatibility)]
[FailsOnIOSWhenRunningOnXamarinUITest]
[FailsOnMacWhenRunningOnXamarinUITest]
public void SliderBinding()
{
App.WaitForNoElement(Success.ToString());
App.WaitForElement(Success.ToString());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public Bugzilla42277(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.ListView)]
[Category(UITestCategories.Compatibility)]
[FailsOnAllPlatformsWhenRunningOnXamarinUITest]
public void Bugzilla42277Test()
{
App.WaitForElement(Success1);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if WINDOWS
using NUnit.Framework;
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

Expand All @@ -9,7 +8,11 @@ public class Bugzilla43519 : _IssuesUITest
{
const string Pop = "PopModal";
const string Push = "PushModal";
#if ANDROID
const string Page2 = "PAGE 2";
#else
const string Page2 = "Page 2";
#endif

public Bugzilla43519(TestDevice testDevice) : base(testDevice)
{
Expand All @@ -20,7 +23,6 @@ public Bugzilla43519(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.TabbedPage)]
[Category(UITestCategories.Compatibility)]
[FailsOnWindowsWhenRunningOnXamarinUITest]
public void TabbedModalNavigation()
{
App.WaitForElement(Page2);
Expand All @@ -32,5 +34,4 @@ public void TabbedModalNavigation()
App.WaitForElement(Page2);
}
}
}
#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ public Bugzilla45702(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.Navigation)]
[Category(UITestCategories.Compatibility)]
[FailsOnIOSWhenRunningOnXamarinUITest]
[FailsOnMacWhenRunningOnXamarinUITest]
public void Issue45702Test()
{
App.WaitForElement("ClickMe");
App.Tap("ClickMe");
App.WaitForNoElement("Success");
App.WaitForElement("Success");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,27 @@ public Bugzilla46458(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.Layout)]
[Category(UITestCategories.Compatibility)]
[FailsOnAllPlatformsWhenRunningOnXamarinUITest]
public void GridIsEnabled()
{
App.WaitForElement("entry");
App.Tap("entry");
App.WaitForNoElement("Success");
App.WaitForElement("Success");

App.WaitForElement("button");
App.Tap("button");
App.WaitForNoElement("Success");
App.WaitForElement("Success");

App.WaitForElement("button1");
App.Tap("button1");
App.WaitForElement("Clicked");

App.WaitForElement("entry");
App.Tap("entry");
App.WaitForNoElement("Success");
App.WaitForElement("Success");

App.WaitForElement("button");
App.Tap("button");
App.WaitForNoElement("Success");
App.WaitForElement("Success");
}
}
}

0 comments on commit 227e582

Please sign in to comment.