Vladislav Pozdniakov 4f666f0ba1 Fix macOS thick titlebar mouse event duplication (#19447) 2 mēneši atpakaļ
..
Properties 8250131e10 Rename integration tests now they're not win32-only. 3 gadi atpakaļ
AppiumDriverEx.cs d4d322654e [Windows] WindowDecorations related integration tests (#15561) 1 gadu atpakaļ
AutomationTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
Avalonia.IntegrationTests.Appium.csproj 27e446e5e0 Make integrational tests compatible with Appium 2 (#15570) 1 gadu atpakaļ
ButtonTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
CheckBoxTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
CollectionDefinitions.cs d4d322654e [Windows] WindowDecorations related integration tests (#15561) 1 gadu atpakaļ
ComboBoxTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
ContextMenuTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
DefaultAppFixture.cs ad0bc0dabf TrayIcon integration tests (#16154) 1 gadu atpakaļ
ElementExtensions.cs 4f666f0ba1 Fix macOS thick titlebar mouse event duplication (#19447) 2 mēneši atpakaļ
EmbeddingTests.cs b272283e50 Make popup focus stealing configurable. (#16642) 1 gadu atpakaļ
GestureTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
ListBoxTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
MenuTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
NativeMenuTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
OverlayPopupsAppFixture.cs ad0bc0dabf TrayIcon integration tests (#16154) 1 gadu atpakaļ
PlatformFactAttribute.cs 0b1b3476fb Make EnumExtensions internal. 2 gadi atpakaļ
PlatformTheoryAttribute.cs 0b1b3476fb Make EnumExtensions internal. 2 gadi atpakaļ
PointerTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
PointerTests_MacOS.cs 4f666f0ba1 Fix macOS thick titlebar mouse event duplication (#19447) 2 mēneši atpakaļ
RadioButtonTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
ScreenTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
ScrollBarTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
SliderTests.cs 7a42c7eb8f Considering scaling when centering windows (#16158) 1 gadu atpakaļ
TestBase.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
TrayIconTests.cs fa8b1736de Refactor integration test app paging (#16551) 1 gadu atpakaļ
WindowDecorationsTests.cs 854078067d Win32 - Fix Window Frame Size and Position issues. (#16608) 1 gadu atpakaļ
WindowTests.cs 1f8701a2fc Add Window.CanMinimize/CanMaximize (#18117) 2 mēneši atpakaļ
WindowTests_MacOS.cs 7a42c7eb8f Considering scaling when centering windows (#16158) 1 gadu atpakaļ
macos-clean-build-test.sh 326ef7c9fd Add .NET 8 target (Avalonia 11.1) (#14535) 1 gadu atpakaļ
readme.md d4339e4b0a Update Appium tests readme.md (#16134) 1 gadu atpakaļ
record-video.runsettings e0e99b31a8 Record video for failing win32 integration tests on CI. (#16546) 1 gadu atpakaļ
xunit.runner.json 8250131e10 Rename integration tests now they're not win32-only. 3 gadi atpakaļ

readme.md

Running Integration Tests

Windows

Prerequisites

Running

  • Run WinAppDriver (it gets installed to the start menu)
  • Run the tests in this project

macOS

Prerequisites

  • Install Appium: https://appium.io/
  • Give Xcode helper the required permissions
  • cd samples/IntegrationTestApp then ./bundle.sh to create an app bundle for IntegrationTestApp
  • Register the app bundle by running open -n ./bin/Debug/net8.0/osx-arm64/publish/IntegrationTestApp.app

Running

  • Run appium
  • Run the tests in this project

Each time you make a change to Avalonia or IntegrationTestApp, re-run the bundle.sh script (registration only needs to be done once).

Appium 2

Tests in this project are configured to run with Appium 1 (as only this version supports WinAppDriver). If you need to run with Appium 2 on macOS, extra steps are required:

  • Install Appium 2 with mac2 driver
  • Set <IsRunningAppium2>true</IsRunningAppium2> msbuild property on the test project or globally
  • Run appium 2 with appium --base-path=/wd/hub (custom base path is required)
  • Run tests as normally