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 some UITests from Issues folder in Appium-7 #27181

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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 @@ -16,12 +16,9 @@ public CollectionViewBindingErrorsUITests(TestDevice device)
// CollectionViewBindingErrorsShouldBeZero (src\Compatibility\ControlGallery\src\Issues.Shared\CollectionViewBindingErrors.xaml.cs)
[Test]
[Category(UITestCategories.CollectionView)]
[FailsOnMacWhenRunningOnXamarinUITest("This test is failing, likely due to product issue")]
[FailsOnWindowsWhenRunningOnXamarinUITest("This test is failing, likely due to product issue")]
public void NoBindingErrors()
{
App.WaitForElement("WaitForStubControl");
App.WaitForNoElement("Binding Errors: 0");
Assert.That(App.WaitForElement("WaitForStubControl").GetText(), Is.EqualTo("Binding Errors: 0"));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@ public Issue2674(TestDevice testDevice) : base(testDevice)

[Test]
[Category(UITestCategories.Picker)]
[Category(UITestCategories.Compatibility)]
[FailsOnIOSWhenRunningOnXamarinUITest]
[FailsOnMacWhenRunningOnXamarinUITest]
public void Issue2674Test()
{
App.Screenshot("I am at Issue2674");
App.WaitForElement("picker");
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using NUnit.Framework;
#if TEST_FAILS_ON_WINDOWS && TEST_FAILS_ON_IOS && TEST_FAILS_ON_CATALYST // In iOS and Catalyst, WaitForNoElement throws a timeout exception eventhough the text is not visible on the screen by scrolling.
//In Windows, The ScrollView remains scrollable even when ScrollOrientation.Neither is set. Issue Link: https://github.com/dotnet/maui/issues/27140
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

Expand All @@ -18,8 +20,6 @@ public Issue2680ScrollView(TestDevice testDevice) : base(testDevice)

[Test]
[Category(UITestCategories.ScrollView)]
[Category(UITestCategories.Compatibility)]
[FailsOnAndroidWhenRunningOnXamarinUITest]
[FailsOnIOSWhenRunningOnXamarinUITest]
[FailsOnMacWhenRunningOnXamarinUITest]
public void Issue2680Test_ScrollDisabled()
Expand Down Expand Up @@ -47,4 +47,5 @@ public void Issue2680Test_ScrollEnabled()
App.WaitForNoElement(FirstItemMark, timeout: TimeSpan.FromSeconds(5));
}
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@ public Issue6705(TestDevice testDevice) : base(testDevice)

[Test]
[Category(UITestCategories.Button)]
[Category(UITestCategories.Compatibility)]
[FailsOnIOSWhenRunningOnXamarinUITest]
[FailsOnMacWhenRunningOnXamarinUITest]
[FailsOnWindowsWhenRunningOnXamarinUITest]
public void Issue6705Test()
{
for (var i = 1; i < 6; i++)
{
App.WaitForElement($"Button{i}");
App.Tap($"Button{i}");
App.WaitForNoElement($"{i}");
App.WaitForElement($"{i}");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#if IOS
#if TEST_FAILS_ON_WINDOWS //BoxView automation ID isn't working on the Windows platform, causing a TimeoutException.
//Issue Link: https://github.com/dotnet/maui/issues/27195
using NUnit.Framework;
using NUnit.Framework.Legacy;
using UITest.Appium;
Expand All @@ -19,16 +20,14 @@ public Issue6945(TestDevice testDevice) : base(testDevice)

[Test]
[Category(UITestCategories.Layout)]
[Category(UITestCategories.Compatibility)]
[FailsOnIOSWhenRunningOnXamarinUITest]
public void WrongTranslationBehaviorWhenChangingHeightRequestAndSettingAnchor()
{
var rect = App.WaitForElement(BoxViewId).GetRect();
App.Tap(ClickMeId);
var rect2 = App.WaitForElement(BoxViewId).GetRect();

ClassicAssert.AreEqual(rect.X, rect2.X);
ClassicAssert.AreEqual(rect.Y, rect2.Y);
Assert.That(rect.X, Is.EqualTo(rect2.X));
Assert.That(rect.Y, Is.EqualTo(rect2.Y));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using NUnit.Framework;
#if TEST_FAILS_ON_WINDOWS //Application crash while load the listview, for more information: https://github.com/dotnet/maui/issues/27174
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

Expand All @@ -14,13 +15,12 @@ public Issue6994(TestDevice testDevice) : base(testDevice)

[Test]
[Category(UITestCategories.Button)]
[Category(UITestCategories.Compatibility)]
[FailsOnAllPlatformsWhenRunningOnXamarinUITest]
public void NullPointerExceptionOnFastLabelTextColorChange()
{
App.WaitForElement("Click me");
App.Tap("Click me");
App.WaitForElement("Success");
App.WaitForElementTillPageNavigationSettled("Success");
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ public Issue7313(TestDevice testDevice) : base(testDevice)

[Test]
[Category(UITestCategories.ListView)]
[Category(UITestCategories.Compatibility)]
[FailsOnIOSWhenRunningOnXamarinUITest]
public void RefreshControlTurnsOffSuccessfully()
{
App.WaitForNoElement("If you see the refresh circle this test has failed");
App.WaitForElement("If you see the refresh circle this test has failed");

App.WaitForNoElement("RefreshControl");
}
Expand Down
Loading