Skip to content
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

[Testing] Enabling ported UITests from Xamarin.UITests to Appium - 59 #26731

Merged
merged 3 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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");
}
}
}
Loading