Просмотр исходного кода

Restore integration tests (#20296)

* Restore integration tests

* Fix TransparentPopup test not closing on macOS
Julien Lebosquain 2 недель назад
Родитель
Сommit
d84d881729

+ 2 - 1
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();

+ 0 - 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" />