Add AutoRetry missing attribute
This commit is contained in:
Родитель
ccafcd3760
Коммит
7610c09f41
|
@ -17,6 +17,7 @@ namespace SamplesApp.UITests.Toolkit
|
|||
{
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS)] // Android is disabled https://github.com/unoplatform/uno/issues/1635
|
||||
public void Elevation_Validation()
|
||||
{
|
||||
|
|
|
@ -14,6 +14,7 @@ namespace SamplesApp.UITests.Windows_Devices
|
|||
public class GyrometerTests : SampleControlUITestBase
|
||||
{
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Android)]
|
||||
public void When_Gyrometer_Is_Retrived_With_GetDefault()
|
||||
{
|
||||
|
@ -23,6 +24,7 @@ namespace SamplesApp.UITests.Windows_Devices
|
|||
}
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Android)]
|
||||
public void When_Reading_Is_Attached()
|
||||
{
|
||||
|
@ -51,6 +53,7 @@ namespace SamplesApp.UITests.Windows_Devices
|
|||
}
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Android)]
|
||||
public void When_Reading_Is_Attached_And_Waits()
|
||||
{
|
||||
|
@ -78,6 +81,7 @@ namespace SamplesApp.UITests.Windows_Devices
|
|||
}
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Android)]
|
||||
public void When_Reading_Is_Attached_And_Detaches()
|
||||
{
|
||||
|
|
|
@ -15,6 +15,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Automation
|
|||
public class AutomationId_Tests : SampleControlUITestBase
|
||||
{
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestSimple()
|
||||
{
|
||||
Run("UITests.Shared.Windows_UI.Xaml_Automation.AutomationProperties_AutomationId");
|
||||
|
|
|
@ -16,6 +16,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Controls.FlyoutTests
|
|||
public partial class Flyout_Tests : SampleControlUITestBase
|
||||
{
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[Ignore("Not available yet")]
|
||||
public void FlyoutTest_BottomPlacement_WithSmallerAnchor_DoesntDefaultToFull()
|
||||
{
|
||||
|
@ -36,6 +37,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Controls.FlyoutTests
|
|||
}
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void FlyoutTest_Target()
|
||||
{
|
||||
Run("Uno.UI.Samples.Content.UITests.Flyout.Flyout_Target");
|
||||
|
@ -94,6 +96,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Controls.FlyoutTests
|
|||
}
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void FlyoutTest_Unloaded()
|
||||
{
|
||||
Run("UITests.Shared.Windows_UI_Xaml_Controls.Flyout.Flyout_Unloaded");
|
||||
|
|
|
@ -53,6 +53,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Controls.ListViewTests
|
|||
}
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.Android)]
|
||||
public void ListView_ItemPanel_HotSwapTest()
|
||||
{
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using NUnit.Framework;
|
||||
using SamplesApp.UITests.TestFramework;
|
||||
using Uno.UITest.Helpers;
|
||||
using Uno.UITest.Helpers.Queries;
|
||||
|
||||
|
@ -12,6 +13,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Controls.ToggleSwitchTests
|
|||
public partial class ToggleSwitch_Tests : SampleControlUITestBase
|
||||
{
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void ToggleSwitch_TemplateReuseTest()
|
||||
{
|
||||
Run("UITests.Shared.Windows_UI_Xaml_Controls.ToggleSwitchControl.ToggleSwitch_TemplateReuse");
|
||||
|
|
|
@ -13,24 +13,29 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
public class Capture_Tests : SampleControlUITestBase
|
||||
{
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS | Platform.Android)] // This fails with unit test
|
||||
public void TestSimple()
|
||||
=> RunTest("Simple", TouchAndMoveOut);
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestVisibility()
|
||||
=> RunTest("Visibility");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestNestedVisibility()
|
||||
=> RunTest("NestedVisibility");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[Ignore("Inconsistent behavior between manual and unit test")]
|
||||
public void TestIsEnabled()
|
||||
=> RunTest("IsEnabled");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[Ignore("Inconsistent behavior between manual and unit test")]
|
||||
[ActivePlatforms(Platform.Browser)] // The IsEnabled property is not inherited on other platforms yet.
|
||||
public void TestNestedIsEnabled()
|
||||
|
|
|
@ -14,6 +14,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Controls.TimePickerTests
|
|||
public class DragCoordinates_Tests : SampleControlUITestBase
|
||||
{
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Browser)] // Android is disabled https://github.com/unoplatform/uno/issues/1257
|
||||
public void DragBorder01()
|
||||
{
|
||||
|
|
|
@ -13,26 +13,32 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
public class EventSequence_Tests : SampleControlUITestBase
|
||||
{
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestTap()
|
||||
=> RunSequence("Tap");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestClick()
|
||||
=> RunSequence("Click");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestTranslatedTap()
|
||||
=> RunSequence("TranslatedTap", TranslateOverElement);
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestTranslatedClick()
|
||||
=> RunSequence("TranslatedClick", TranslateOverElement);
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestHyperlink()
|
||||
=> RunSequence("Hyperlink", TapSomewhereInElement);
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestListView()
|
||||
=> RunSequence("ListView", TapSomewhereInElement);
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using NUnit.Framework;
|
||||
using SamplesApp.UITests.TestFramework;
|
||||
using Uno.UITest.Helpers;
|
||||
using Uno.UITest.Helpers.Queries;
|
||||
|
||||
|
@ -12,6 +13,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
public class Manipulation_Tests : SampleControlUITestBase
|
||||
{
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestManipulation()
|
||||
{
|
||||
Run("UITests.Shared.Windows_UI_Input.GestureRecognizerTests.ManipulationEvents");
|
||||
|
|
|
@ -16,6 +16,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
public class VisualState_Tests : SampleControlUITestBase
|
||||
{
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Android)]
|
||||
public void TestButtonReleasedOut() => TestButtonReleasedOutState(
|
||||
"MyButton",
|
||||
|
@ -24,6 +25,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
"CommonStates.Normal");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Android)]
|
||||
public void TestIndeterminateToggleButtonReleasedOut() => TestButtonReleasedOutState(
|
||||
"MyIndeterminateToggleButton",
|
||||
|
@ -32,6 +34,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
"CommonStates.Indeterminate");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Android)]
|
||||
public void TestCheckedToggleButtonReleasedOut() => TestButtonReleasedOutState(
|
||||
"MyCheckedToggleButton",
|
||||
|
@ -40,6 +43,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
"CommonStates.Checked");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[Ignore("We get an invalid 'PointerOver' on release, a fix in pending in another PR")]
|
||||
public void TestUncheckedToggleButtonReleasedOut() => TestButtonReleasedOutState(
|
||||
"MyUncheckedToggleButton",
|
||||
|
@ -48,6 +52,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
"CommonStates.Unchecked");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Android)]
|
||||
public void TestRadioButtonReleasedOut() => TestButtonReleasedOutState(
|
||||
"MyRadioButton",
|
||||
|
@ -56,6 +61,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
"CommonStates.Normal");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Android)]
|
||||
public void TestHyperlinkButtonReleasedOut() => TestButtonReleasedOutState(
|
||||
"MyHyperlinkButton",
|
||||
|
@ -64,6 +70,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
"CommonStates.Normal");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Android)]
|
||||
public void TestIndeterminateCheckboxReleasedOut() => TestButtonReleasedOutState(
|
||||
"MyIndeterminateCheckbox",
|
||||
|
@ -72,6 +79,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
"CombinedStates.IndeterminateNormal");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Android)]
|
||||
public void TestCheckedCheckboxReleasedOut() => TestButtonReleasedOutState(
|
||||
"MyCheckedCheckbox",
|
||||
|
@ -80,6 +88,7 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
"CombinedStates.CheckedNormal");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
[ActivePlatforms(Platform.iOS, Platform.Android)]
|
||||
public void TestUncheckedCheckboxReleasedOut() => TestButtonReleasedOutState(
|
||||
"MyUncheckedCheckbox",
|
||||
|
@ -88,10 +97,12 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
"CombinedStates.UncheckedNormal");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestHyperlinkReleasedOut() => TestButtonReleasedOutState(
|
||||
"MyHyperlink"); // There is no "VisualState" for Hyperlink, only a hardcoded opacity of .5 (kind-of like UWP)
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestListViewReleasedOut()
|
||||
{
|
||||
Run("UITests.Shared.Windows_UI_Input.VisualStatesTests.ListViewItem");
|
||||
|
@ -107,12 +118,14 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Input
|
|||
}
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestTextBoxReleaseOut() => TestTextBoxReleasedOutState(
|
||||
"MyTextBox",
|
||||
"CommonStates.PointerOver",
|
||||
"CommonStates.Focused");
|
||||
|
||||
[Test]
|
||||
[AutoRetry]
|
||||
public void TestTextBoxTap() => TestTextBoxTappedState(
|
||||
"MyTextBox",
|
||||
"CommonStates.PointerOver",
|
||||
|
|
Загрузка…
Ссылка в новой задаче