Skip to content
Merged
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 @@ -19,6 +19,7 @@ protected override void FixtureSetup()
App.NavigateToGallery(DatePickerFeatureMatrix);
}

#if TEST_FAILS_ON_WINDOWS && TEST_FAILS_ON_IOS //Issue Link: https://github.com/dotnet/maui/issues/30736, https://github.com/dotnet/maui/issues/31167
[Test, Order(1)]
[Category(UITestCategories.DatePicker)]
public void DatePicker_InitialState_VerifyVisualState()
Expand Down Expand Up @@ -85,8 +86,9 @@ public void DatePicker_OldDateAndNewDate_VerifyVisualState()
#endif
VerifyScreenshot();
}
#endif

#if TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_WINDOWS // Issue Links - https://github.com/dotnet/maui/issues/30066
#if TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_WINDOWS && TEST_FAILS_ON_IOS // Issue Links - https://github.com/dotnet/maui/issues/30066, https://github.com/dotnet/maui/issues/31167
[Test, Order(4)]
[Category(UITestCategories.DatePicker)]
public void DatePicker_SetCharacterSpacingAndDate_VerifyVisualState()
Expand Down Expand Up @@ -143,7 +145,7 @@ public void DatePicker_SetDateAndFormat_VerifyVisualState()
}
#endif

#if TEST_FAILS_ON_CATALYST // Issue Links -https://github.com/dotnet/maui/issues/20904
#if TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_IOS // Issue Links -https://github.com/dotnet/maui/issues/20904, https://github.com/dotnet/maui/issues/31167
[Test, Order(7)]
[Category(UITestCategories.DatePicker)]
public void DatePicker_SetDateAndTextColor_VerifyVisualState()
Expand Down Expand Up @@ -175,7 +177,7 @@ public void DatePicker_SetDateAndFlowDirection_VerifyVisualState()
}
#endif

#if TEST_FAILS_ON_CATALYST
#if TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_IOS // Issue Link: https://github.com/dotnet/maui/issues/31167
[Test, Order(9)]
[Category(UITestCategories.DatePicker)]
public void DatePicker_SetFontAttributesAndFontFamily_VerifyVisualState()
Expand All @@ -191,9 +193,7 @@ public void DatePicker_SetFontAttributesAndFontFamily_VerifyVisualState()
App.WaitForElementTillPageNavigationSettled("DatePickerControl");
VerifyScreenshot();
}
#endif

#if TEST_FAILS_ON_CATALYST

[Test, Order(10)]
[Category(UITestCategories.DatePicker)]
public void DatePicker_SetFontAttributesAndFontSize_VerifyVisualState()
Expand All @@ -210,6 +210,23 @@ public void DatePicker_SetFontAttributesAndFontSize_VerifyVisualState()
App.WaitForElementTillPageNavigationSettled("DatePickerControl");
VerifyScreenshot();
}

[Test, Order(12)]
[Category(UITestCategories.DatePicker)]
public void DatePicker_SetFontFamilyAndFontSize_VerifyVisualState()
{
App.WaitForElement("Options");
App.Tap("Options");
App.WaitForElement("FontFamilyDokdoButton");
App.Tap("FontFamilyDokdoButton");
App.WaitForElement("FontSizeEntry");
App.ClearText("FontSizeEntry");
App.EnterText("FontSizeEntry", "20");
App.WaitForElement("Apply");
App.Tap("Apply");
App.WaitForElementTillPageNavigationSettled("DatePickerControl");
VerifyScreenshot();
}
#endif

#if TEST_FAILS_ON_IOS && TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_WINDOWS // Issue Links - https://github.com/dotnet/maui/issues/23793, https://github.com/dotnet/maui/issues/29099, https://github.com/dotnet/maui/issues/30011
Expand All @@ -233,25 +250,6 @@ public void DatePicker_SetFontAttributesAndFormat_VerifyVisualState()
}
#endif

#if TEST_FAILS_ON_CATALYST
[Test, Order(12)]
[Category(UITestCategories.DatePicker)]
public void DatePicker_SetFontFamilyAndFontSize_VerifyVisualState()
{
App.WaitForElement("Options");
App.Tap("Options");
App.WaitForElement("FontFamilyDokdoButton");
App.Tap("FontFamilyDokdoButton");
App.WaitForElement("FontSizeEntry");
App.ClearText("FontSizeEntry");
App.EnterText("FontSizeEntry", "20");
App.WaitForElement("Apply");
App.Tap("Apply");
App.WaitForElementTillPageNavigationSettled("DatePickerControl");
VerifyScreenshot();
}
#endif

#if TEST_FAILS_ON_IOS && TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_WINDOWS // Issue Links - https://github.com/dotnet/maui/issues/23793, https://github.com/dotnet/maui/issues/29099, https://github.com/dotnet/maui/issues/30011
[Test, Order(13)]
[Category(UITestCategories.DatePicker)]
Expand Down Expand Up @@ -297,6 +295,7 @@ public void DatePicker_SetFontSizeAndFormat_VerifyVisualState()
}
#endif

#if TEST_FAILS_ON_IOS //Issue Link: https://github.com/dotnet/maui/issues/31167
[Test, Order(15)]
[Category(UITestCategories.DatePicker)]
public void DatePicker_SetDateAndIsEnabled_VerifyVisualState()
Expand All @@ -312,6 +311,7 @@ public void DatePicker_SetDateAndIsEnabled_VerifyVisualState()
App.Tap("DatePickerControl");
VerifyScreenshot();
}
#endif

[Test, Order(16)]
[Category(UITestCategories.DatePicker)]
Expand All @@ -327,7 +327,7 @@ public void DatePicker_SetDateAndIsVisible_VerifyVisualState()
VerifyScreenshot();
}

#if TEST_FAILS_ON_WINDOWS // Issue Links - https://github.com/dotnet/maui/issues/29812
#if TEST_FAILS_ON_WINDOWS && TEST_FAILS_ON_IOS// Issue Links - https://github.com/dotnet/maui/issues/29812, https://github.com/dotnet/maui/issues/31167
[Test, Order(17)]
[Category(UITestCategories.DatePicker)]
public void DatePicker_SetDateAndShadowOpacity_VerifyVisualState()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public void GraphicsView_StringDrawable_VerifyTypeAndRendering()
VerifyShapeScreenshot();
}

#if TEST_FAILS_ON_ANDROID // Issue Link: https://github.com/dotnet/maui/issues/30783
[Test]
[Category(UITestCategories.GraphicsView)]
public void GraphicsView_ImageDrawable_VerifyTypeAndRendering()
Expand All @@ -147,6 +148,7 @@ public void GraphicsView_ImageDrawable_VerifyTypeAndRendering()
Assert.That(App.FindElement("DrawableTypeLabel").GetText(), Is.EqualTo("Image"));
VerifyShapeScreenshot();
}
#endif

#if TEST_FAILS_ON_ANDROID //See issue : https://github.com/dotnet/maui/issues/29394
[Test]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using NUnit.Framework;
#if TEST_FAILS_ON_ANDROID // https://github.com/dotnet/maui/issues/30783
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

Expand All @@ -19,3 +20,4 @@ public void Issue18430ExceptionShouldNotThrown()
App.WaitForElement("Issue18430DescriptionLabel");
}
}
#endif