Remove duplicate versions of tests (#24611)
This commit is contained in:
Родитель
bcba26ff76
Коммит
336f7f4523
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
@ -27,4 +29,5 @@ namespace Microsoft.Maui.TestCases.Tests
|
|||
App.WaitForNoElement("Click Me?");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
|
@ -3,9 +3,10 @@ using NUnit.Framework;
|
|||
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";
|
||||
|
@ -19,6 +20,8 @@ namespace Microsoft.Maui.TestCases.Tests
|
|||
|
||||
// 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
|
|
@ -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)
|
||||
|
@ -38,4 +40,5 @@ namespace Microsoft.Maui.TestCases.Tests
|
|||
return (initialPosition, finalPosition);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
|
@ -4,19 +4,18 @@ using UITest.Core;
|
|||
|
||||
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");
|
||||
|
|
|
@ -3,7 +3,7 @@ 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 ScrollChangeOrientationUITests : _IssuesUITest
|
|
@ -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
|
||||
|
@ -28,4 +29,5 @@ namespace Microsoft.Maui.TestCases.Tests
|
|||
App.WaitForNoElement("Foo");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
|
@ -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
|
||||
|
@ -53,4 +54,5 @@ namespace Microsoft.Maui.TestCases.Tests
|
|||
App.WaitForNoElement(FirstItemMark, timeout: TimeSpan.FromSeconds(5));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
|
@ -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
|
||||
|
@ -120,4 +121,5 @@ namespace Microsoft.Maui.TestCases.Tests
|
|||
this.Back();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
|
@ -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
|
|
@ -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
|
||||
|
@ -27,4 +28,5 @@ namespace Microsoft.Maui.TestCases.Tests
|
|||
App.WaitForElement("Success");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
|
@ -1,29 +0,0 @@
|
|||
using NUnit.Framework;
|
||||
using UITest.Appium;
|
||||
using UITest.Core;
|
||||
|
||||
namespace Microsoft.Maui.TestCases.Tests
|
||||
{
|
||||
[Category(UITestCategories.ScrollView)]
|
||||
public class Bugzilla28570UITests : _IssuesUITest
|
||||
{
|
||||
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]
|
||||
[FailsOnAndroid("This test is failing, likely due to product issue")]
|
||||
public void Bugzilla28570Test()
|
||||
{
|
||||
App.WaitForElement ("Tap");
|
||||
App.Screenshot ("At test page");
|
||||
App.Tap("Tap");
|
||||
|
||||
App.WaitForElement ("28570Target");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
using NUnit.Framework;
|
||||
using UITest.Appium;
|
||||
using UITest.Core;
|
||||
|
||||
namespace Microsoft.Maui.TestCases.Tests
|
||||
{
|
||||
[Category(UITestCategories.ScrollView)]
|
||||
public class Bugzilla49069UITests : _IssuesUITest
|
||||
{
|
||||
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]
|
||||
public void Bugzilla49069Test()
|
||||
{
|
||||
App.WaitForElement("lblLong");
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче