Skip to content

Commit

Permalink
- reenable compatibility tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Feb 13, 2024
1 parent 94a66de commit c44e670
Show file tree
Hide file tree
Showing 27 changed files with 1 addition and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ protected override void OnPagesChanged(NotifyCollectionChangedEventArgs e)
}

#if UITEST && __ANDROID__
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiAndroid]
[Test]
public async Task AddAndRemovePages()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ protected override void Init()
}

#if UITEST
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiAndroid]
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiIOS]
[Test]
public void Bugzilla29453Test()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ public PatientViewModel(string code)


#if UITEST
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiAndroid]
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiIOS]
[Test]
public void Bugzilla40704HeaderPresentTest()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ protected override void Init()
}

#if UITEST
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiAndroid]
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiIOS]
[Test]
public void GridIsEnabled()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ public LandingPage()
}

#if UITEST
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiAndroid]
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiIOS]
[Test]
public void Bugzilla47923Test()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public ChildPage()

#if UITEST
[Test]
[Controls.Compatibility.UITests.FailsOnMauiAndroid]
public void Issue51503Test()
{
for (int i = 0; i < 3; i++)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public void TimePickerOther()
[Test]
// Tests runs locally without issues but doesn't run successfully in a hosted agent yet
[Category(UITestCategories.UwpIgnore)]
[FailsOnMauiAndroid]
[FailsOnMauiIOS]
public void DatePickerDMY()
{
Expand All @@ -122,7 +121,6 @@ public void DatePickerDMY()
[Test]
// Tests runs locally without issues but doesn't run successfully in a hosted agent yet
[Category(UITestCategories.UwpIgnore)]
[FailsOnMauiAndroid]
[FailsOnMauiIOS]
public void DatePickerMissing()
{
Expand All @@ -140,7 +138,6 @@ public void DatePickerMissing()

#if !WINDOWS
[Test]
[FailsOnMauiAndroid]
[FailsOnMauiIOS]
public void DatePickerLetters()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public class GestureBubblingTests : TestNavigationPage
static NavigationPage NavigationPage;

#if UITEST
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiAndroid]
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiIOS] // on iOS only menuItem=Slider, frameShouldRegisterTap=False fails
[Test, TestCaseSource(nameof(TestCases))]
[NUnit.Framework.Category(Compatibility.UITests.UITestCategories.UwpIgnore)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ protected override void Init()
#if UITEST
[Test]
[Compatibility.UITests.FailsOnMauiIOS]
[Compatibility.UITests.FailsOnMauiAndroid]
public void CollectionViewInfiniteScroll()
{
RunningApp.WaitForElement("CollectionView5623");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ public class InputTransparentTests : TestNavigationPage
static NavigationPage NavigationPage;

#if UITEST
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiAndroid]
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiIOS] // Only menuItem=Frame fails on iOS
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiIOS] // Only menuItem=Frame fails on iOS
[Test, TestCaseSource(nameof(TestCases))]
public void VerifyInputTransparent(string menuItem)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ void Button_Clicked(object sender, EventArgs e)

#if UITEST
[Test]
[Compatibility.UITests.FailsOnMauiAndroid]
[Compatibility.UITests.FailsOnMauiIOS]
public void CarouselViewPositionFromVisibilityChangeTest()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ public void Issue12574Test()

[Test]
[Compatibility.UITests.FailsOnMauiIOS]
[Compatibility.UITests.FailsOnMauiAndroid]
public void RemoveItemsQuickly()
{
RunningApp.WaitForElement("0 item");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ public SubItem(string text)
#if UITEST
[Test]
[Compatibility.UITests.FailsOnMauiIOS]
[Compatibility.UITests.FailsOnMauiAndroid]
public void UpdatingSourceOfDisposedListViewDoesNotCrash()
{
RunningApp.Tap(Go);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ static FlyoutPageNavigation FlyoutPageHost


#if UITEST
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiAndroid]
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiIOS]
[Test]
public void SwapMainPageWithFlyoutPages()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ protected override void Init()
}

#if UITEST
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiAndroid]
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiIOS]
[Test]
public void Issue2767Test()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public partial class Issue3319 : TestContentPage
{
#if UITEST
[Test]
[Compatibility.UITests.FailsOnMauiAndroid]
[Compatibility.UITests.FailsOnMauiIOS]
public void Issue3319Test()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ namespace Microsoft.Maui.Controls.ControlGallery.Issues
public partial class Issue4356 : TestContentPage
{
#if UITEST
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiAndroid]
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiIOS]
[Test]
public void Issue4356Test()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ protected override void Init()
#if !WINDOWS
[Test]
[Compatibility.UITests.FailsOnMauiIOS]
[Compatibility.UITests.FailsOnMauiAndroid]
public void ImageFromFileSourceAppearsAndDisappearsCorrectly()
{
RunTest(nameof(Image), true);
Expand All @@ -194,7 +193,6 @@ public void ImageFromUriSourceAppearsAndDisappearsCorrectly()

[Test]
[Compatibility.UITests.FailsOnMauiIOS]
[Compatibility.UITests.FailsOnMauiAndroid]
public void ButtonFromFileSourceAppearsAndDisappearsCorrectly()
{
RunTest(nameof(Button), true);
Expand All @@ -212,7 +210,6 @@ public void ButtonFromUriSourceAppearsAndDisappearsCorrectly()

[Test]
[Compatibility.UITests.FailsOnMauiIOS]
[Compatibility.UITests.FailsOnMauiAndroid]
public void ImageButtonFromFileSourceAppearsAndDisappearsCorrectly()
{
RunTest(nameof(ImageButton), true);
Expand All @@ -229,7 +226,6 @@ public void ImageButtonFromUriSourceAppearsAndDisappearsCorrectly()

[Test]
[Compatibility.UITests.FailsOnMauiIOS]
[Compatibility.UITests.FailsOnMauiAndroid]
public void ImageCellFromFileSourceAppearsAndDisappearsCorrectly()
{
ImageCellTest(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ protected override void Init()

#if UITEST && __ANDROID__
[Test]
[Compatibility.UITests.FailsOnMauiAndroid]
public void ExpectingPageNotToBreak()
{
RunningApp.Screenshot("Test passed, label is showing as it should!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ ContentPage GroupedCollectionViewPage()

#if UITEST
[Test]
[FailsOnMauiAndroid]
public void AddingItemToUnviewedCollectionViewShouldNotCrash()
{
RunningApp.WaitForElement(Add1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ protected override void Init()
[Test]
[Issue (IssueTracker.Github, 773, "Horizontal ScrollView locks after rotation - relayout correctly after rotation", PlatformAffected.iOS)]
[UiTest (typeof(ScrollView))]
[Compatibility.UITests.FailsOnMauiAndroid]
public void Issue773TestsRotationRelayoutIssue ()
{
RunningApp.SetOrientationLandscape ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ protected override void Init()

#if UITEST && __ANDROID__
[Test]
[FailsOnMauiAndroid]
public void ContextMenuShowsUpWhenPressAndHoldTextOnEditorAndEntryField()
{
RunningApp.TouchAndHold("PressEditor");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ protected override void Init()
#if UITEST && __SHELL__

[Test]
[FailsOnMauiAndroid]
public void Issue9088SwipeViewConfictWithShellMenuSwipeInFromLeft()
{
RunningApp.WaitForElement(x => x.Marked(SwipeViewId));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ protected override void Init()
}

#if UITEST
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiAndroid]
[Test]
[Description ("Verify the layout lays out on rotations")]
[UiTest (typeof(StackLayout))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ protected override void OnAppearing()

#if UITEST
[Test]
[Compatibility.UITests.FailsOnMauiAndroid]
public void Issue9827Test()
{
RunningApp.WaitForElement("Pos:0");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public override void _UnFocus()

// TODO
// Implement control specific ui tests
[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnMauiAndroid]
[Test]
[UiTest(typeof(Entry), "Completed")]
[Category(UITestCategories.UwpIgnore)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ public void CellsGalleryEntryCellTable()
}

[Test]
[Compatibility.UITests.FailsOnMauiAndroid]
[Category(UITestCategories.Cells)]
[Description("EntryCell fires .Completed event")]
[UiTest(typeof(EntryCell), "Completed")]
Expand Down

0 comments on commit c44e670

Please sign in to comment.