Skip to content

Commit

Permalink
[Testing] Enabling some UITests from Issues folder in Appium-4 (#27067)
Browse files Browse the repository at this point in the history
* removed failsOn attributes

* added snapshots for issues
  • Loading branch information
LogishaSelvarajSF4525 authored Jan 14, 2025
1 parent b7a8358 commit f0f7ddd
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 20 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ public Issue1236(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.Label)]
[Category(UITestCategories.Compatibility)]
[FailsOnIOSWhenRunningOnXamarinUITest]
[FailsOnMacWhenRunningOnXamarinUITest]
public void DelayedLabelBindingShowsUp()
{
Task.Delay(2000).Wait();
App.WaitForNoElement("Lorem Ipsum Dolor Sit Amet");
App.WaitForElement("Lorem Ipsum Dolor Sit Amet");
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if !MACCATALYST // VerifyScreenshot() is not supported on MacCatalyst
using NUnit.Framework;
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

Expand All @@ -13,7 +12,6 @@ public Issue14471(TestDevice device) : base(device) { }

[Test]
[Category(UITestCategories.Image)]
[FailsOnAndroidWhenRunningOnXamarinUITest("Suddenly failing. https://github.com/dotnet/maui/issues/24243")]
public void ImageDoesntDisappearWhenNavigatingBack()
{
App.WaitForElement("image");
Expand All @@ -25,5 +23,4 @@ public void ImageDoesntDisappearWhenNavigatingBack()
// The test passes if image is loaded
VerifyScreenshot();
}
}
#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public Issue17789(TestDevice device) : base(device)

[Test]
[Category(UITestCategories.Page)]
[FailsOnMacWhenRunningOnXamarinUITest("VerifyScreenshot method not implemented on macOS")]
public void ContentPageBackgroundImageSourceWorks()
{
App.WaitForElement("WaitForStubControl");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if MACCATALYST
using NUnit.Framework;
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

Expand All @@ -18,12 +17,10 @@ public Issue2728(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.Label)]
[Category(UITestCategories.Compatibility)]
[FailsOnMacWhenRunningOnXamarinUITest]
public void Issue2728TestsItalicLabel()
{
App.WaitForNoElement(LabelHome);
App.Screenshot("Label rendered with italic font");
App.WaitForElement(LabelHome);
VerifyScreenshot();
}
}
}
#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ public Issue2983(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.ListView)]
[Category(UITestCategories.Compatibility)]
[FailsOnIOSWhenRunningOnXamarinUITest]
[FailsOnMacWhenRunningOnXamarinUITest]
public void TestDoesNotCrash()
{
App.WaitForElement("footer");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public Issue3089(TestDevice testDevice) : base(testDevice)
[Test]
[Category(UITestCategories.ListView)]
[Category(UITestCategories.Compatibility)]
[FailsOnAllPlatformsWhenRunningOnXamarinUITest]
public void ResettingItemsOnRecycledListViewKeepsOldText()
{
App.WaitForElement(Reload);
App.Tap(Reload);
App.WaitForNoElement(Success);
App.WaitForElement(Success);
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f0f7ddd

Please sign in to comment.