Browse Source

Restore integration tests (#20296)

* Restore integration tests

* Fix TransparentPopup test not closing on macOS
pull/20310/head
Julien Lebosquain 5 months ago
committed by GitHub
parent
commit
d84d881729
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      samples/IntegrationTestApp/Pages/WindowPage.axaml.cs
  2. 20
      tests/Avalonia.IntegrationTests.Appium/Avalonia.IntegrationTests.Appium.csproj

3
samples/IntegrationTestApp/Pages/WindowPage.axaml.cs

@ -136,6 +136,7 @@ public partial class WindowPage : UserControl
Width = 200,
Height = 200,
Background = Brushes.Green,
SystemDecorations = SystemDecorations.None,
WindowStartupLocation = WindowStartupLocation.CenterOwner,
Content = new Border
{
@ -145,7 +146,7 @@ public partial class WindowPage : UserControl
}
};
backgroundWindow.PointerPressed += (_, _) => backgroundWindow.Close();
popup.PointerPressed += (_, _) => backgroundWindow.Close();
backgroundWindow.Show(Window);
popup.Open();

20
tests/Avalonia.IntegrationTests.Appium/Avalonia.IntegrationTests.Appium.csproj

@ -23,26 +23,6 @@
<PackageReference Include="Appium.WebDriver" Version="5.2.0"/>
</ItemGroup>
<ItemGroup>
<Compile Remove="ButtonTests.cs" />
<Compile Remove="CheckBoxTests.cs" />
<Compile Remove="ContextMenuTests.cs" />
<Compile Remove="EmbeddingTests.cs" />
<Compile Remove="GestureTests.cs" />
<Compile Remove="ListBoxTests.cs" />
<Compile Remove="NativeMenuTests.cs" />
<Compile Remove="PointerTests.cs" />
<Compile Remove="PointerTests_MacOS.cs" />
<Compile Remove="RadioButtonTests.cs" />
<Compile Remove="ScreenTests.cs" />
<Compile Remove="ScrollBarTests.cs" />
<Compile Remove="SliderTests.cs" />
<Compile Remove="TrayIconTests.cs" />
<Compile Remove="WindowDecorationsTests.cs" />
<Compile Remove="WindowTests.cs" />
<Compile Remove="WindowTests_MacOS.cs" />
</ItemGroup>
<Import Project="..\..\build\XUnit.props" />
<Import Project="..\..\build\Rx.props" />
<Import Project="..\..\build\ImageSharp.props" />

Loading…
Cancel
Save