Skip to content

Commit

Permalink
Remove duplicate versions of tests (dotnet#24611)
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen authored Sep 7, 2024
1 parent bcba26f commit 336f7f4
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 89 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
#if ANDROID
#if !ANDROID
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests.Issues
{
public class Bugzilla28570 : _IssuesUITest
[Category(UITestCategories.ScrollView)]
[Category(UITestCategories.Compatibility)]
public class Bugzilla28570UITests : _IssuesUITest
{
public Bugzilla28570(TestDevice testDevice) : base(testDevice)
public Bugzilla28570UITests(TestDevice device)
: base(device)
{
}

public override string Issue => "https://bugzilla.xamarin.com/show_bug.cgi?id=28570";

// Bugzilla28570 (src\Compatibility\ControlGallery\src\Issues.Shared\Bugzilla28570.cs)
[Test]
[Category(UITestCategories.Navigation)]
[Category(UITestCategories.Compatibility)]
[FailsOnAndroid("Scroll to end not working.")]
[FailsOnAndroid("This test is failing, likely due to product issue")]
public void Bugzilla28570Test()
{
App.WaitForElement("Tap");
App.Screenshot("At test page");
App.WaitForElement ("Tap");
App.Screenshot ("At test page");
App.Tap("Tap");

App.WaitForElement("28570Target");
App.WaitForElement ("28570Target");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using NUnit.Framework;
#if !IOS && !MACCATALYST
using NUnit.Framework;
using NUnit.Framework.Legacy;
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests
namespace Microsoft.Maui.TestCases.Tests.Issues
{
[Category(UITestCategories.ScrollView)]
[Category(UITestCategories.Compatibility)]
public class Bugzilla35127UITests : _IssuesUITest
{
public Bugzilla35127UITests(TestDevice device)
Expand All @@ -27,4 +29,5 @@ public void Issue35127Test()
App.WaitForNoElement("Click Me?");
}
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests
namespace Microsoft.Maui.TestCases.Tests.Issues
{
[Category(UITestCategories.ScrollView)]
[Category(UITestCategories.Compatibility)]
public class Bugzilla41415UITests : _IssuesUITest
{
const string ButtonId = "ClickId";
Expand All @@ -19,6 +20,8 @@ public Bugzilla41415UITests(TestDevice device)

// Bugzilla41415 (src\Compatibility\ControlGallery\src\Issues.Shared\Bugzilla41415.cs)
[Test]
[FailsOnIOS("This test is failing, likely due to product issue")]
[FailsOnMac("This test is failing, likely due to product issue")]
public void Bugzilla41415Test()
{
// This test is failing, likely due to product issue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using NUnit.Framework;
#if ANDROID
using NUnit.Framework;
using NUnit.Framework.Legacy;
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests
namespace Microsoft.Maui.TestCases.Tests.Issues
{
[Category(UITestCategories.ScrollView)]
[Category(UITestCategories.Compatibility)]
public class Bugzilla44461UITests : _IssuesUITest
{
public Bugzilla44461UITests(TestDevice device)
Expand Down Expand Up @@ -38,4 +40,5 @@ public void Bugzilla44461Test()
return (initialPosition, finalPosition);
}
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@

namespace Microsoft.Maui.TestCases.Tests.Issues
{
public class Bugzilla49069 : _IssuesUITest
[Category(UITestCategories.ScrollView)]
public class Bugzilla49069UITests : _IssuesUITest
{
public Bugzilla49069(TestDevice testDevice) : base(testDevice)
public Bugzilla49069UITests(TestDevice device)
: base(device)
{
}

public override string Issue => "Java.Lang.ArrayIndexOutOfBoundsException when rendering long Label on Android";

// Bugzilla49069 (src\Compatibility\ControlGallery\src\Issues.Shared\Bugzilla49069.cs)
[Test]
[Category(UITestCategories.Label)]
[Category(UITestCategories.Compatibility)]
[FailsOnIOS]
[FailsOnMac]
public void Bugzilla49069Test()
{
App.WaitForElement("lblLong");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests
namespace Microsoft.Maui.TestCases.Tests.Issues
{
[Category(UITestCategories.ScrollView)]
public class ScrollChangeOrientationUITests : _IssuesUITest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using NUnit.Framework;
#if !MACCATALYST && !IOS
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests
namespace Microsoft.Maui.TestCases.Tests.Issues
{
[Category(UITestCategories.ScrollView)]
public class ScrollViewDelayedContentUITests : _IssuesUITest
Expand All @@ -28,4 +29,5 @@ public async Task MeasuringEmptyScrollViewDoesNotCrash()
App.WaitForNoElement("Foo");
}
}
}
}
#endif
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using NUnit.Framework;
#if !MACCATALYST && !IOS && !ANDROID && !WINDOWS
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests
namespace Microsoft.Maui.TestCases.Tests.Issues
{
[Category(UITestCategories.ScrollView)]
public class ScrollViewDisableScrollUITests : _IssuesUITest
Expand Down Expand Up @@ -53,4 +54,5 @@ public void ScrollEnabled()
App.WaitForNoElement(FirstItemMark, timeout: TimeSpan.FromSeconds(5));
}
}
}
}
#endif
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using NUnit.Framework;
#if !IOS && !MACCATALYST
using NUnit.Framework;
using NUnit.Framework.Legacy;
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests
namespace Microsoft.Maui.TestCases.Tests.Issues
{
[Category(UITestCategories.ScrollView)]
public class ScrollViewIsEnabledTests : _IssuesUITest
Expand Down Expand Up @@ -120,4 +121,5 @@ public void ScrollViewInitiallyNotEnabledThenEnabled()
this.Back();
}
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests
namespace Microsoft.Maui.TestCases.Tests.Issues
{
[Category(UITestCategories.ScrollView)]
public class ScrollViewNoContentUITests : _IssuesUITest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using NUnit.Framework;
#if !ANDROID && !WINDOWS
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests
namespace Microsoft.Maui.TestCases.Tests.Issues
{
[Category(UITestCategories.ScrollView)]
public class ScrollViewObjectDisposedUITests : _IssuesUITest
Expand All @@ -27,4 +28,5 @@ public void ScrollViewObjectDisposedTest()
App.WaitForElement("Success");
}
}
}
}
#endif

This file was deleted.

This file was deleted.

0 comments on commit 336f7f4

Please sign in to comment.