Browse Source
TrayIcon tests are flacky, disable them (#16265)
* TrayIcon tests are flacky, disable them
* Skip Horizontal_Changes_Value_Dragging_Thumb_Left too
pull/16271/head
Max Katz
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
5 deletions
-
tests/Avalonia.IntegrationTests.Appium/SliderTests.cs
-
tests/Avalonia.IntegrationTests.Appium/TrayIconTests.cs
|
|
|
@ -23,7 +23,7 @@ namespace Avalonia.IntegrationTests.Appium |
|
|
|
reset.Click(); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
[Fact(Skip = "Flaky test, slider value is sometimes off by 1 or 2 steps.")] |
|
|
|
public void Horizontal_Changes_Value_Dragging_Thumb_Right() |
|
|
|
{ |
|
|
|
var slider = _session.FindElementByAccessibilityId("HorizontalSlider"); |
|
|
|
@ -44,7 +44,7 @@ namespace Avalonia.IntegrationTests.Appium |
|
|
|
Assert.True(currentThumbRect.Left > initialThumbRect.Left); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
[Fact(Skip = "Flaky test, slider value is sometimes off by 1 or 2 steps.")] |
|
|
|
public void Horizontal_Changes_Value_Dragging_Thumb_Left() |
|
|
|
{ |
|
|
|
var slider = _session.FindElementByAccessibilityId("HorizontalSlider"); |
|
|
|
|
|
|
|
@ -32,7 +32,7 @@ public class TrayIconTests : IDisposable |
|
|
|
} |
|
|
|
|
|
|
|
// Left click is only supported on Windows.
|
|
|
|
[PlatformFact(TestPlatforms.Windows)] |
|
|
|
[PlatformFact(TestPlatforms.Windows, Skip = "Flaky test")] |
|
|
|
public void Should_Handle_Left_Click() |
|
|
|
{ |
|
|
|
var avaloinaTrayIconButton = GetTrayIconButton(_rootSession ?? _session, TrayIconName); |
|
|
|
@ -46,7 +46,7 @@ public class TrayIconTests : IDisposable |
|
|
|
Assert.True(checkBox.GetIsChecked()); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
[Fact(Skip = "Flaky test")] |
|
|
|
public void Should_Handle_Context_Menu_Item_Click() |
|
|
|
{ |
|
|
|
var avaloinaTrayIconButton = GetTrayIconButton(_rootSession ?? _session, TrayIconName); |
|
|
|
@ -64,7 +64,7 @@ public class TrayIconTests : IDisposable |
|
|
|
Assert.True(checkBox.GetIsChecked()); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
[Fact(Skip = "Flaky test")] |
|
|
|
public void Can_Toggle_TrayIcon_Visibility() |
|
|
|
{ |
|
|
|
var avaloinaTrayIconButton = GetTrayIconButton(_rootSession ?? _session, TrayIconName); |
|
|
|
|