Browse Source
Merge pull request #10518 from AvaloniaUI/fixes/macos-integration-test-stability
Trying to make integration tests more stable on macOS.
pull/10536/head
Steven Kirk
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
13 additions and
3 deletions
-
azure-pipelines-integrationtests.yml
-
tests/Avalonia.IntegrationTests.Appium/GestureTests.cs
-
tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs
|
|
|
@ -15,11 +15,12 @@ jobs: |
|
|
|
version: 7.0.101 |
|
|
|
|
|
|
|
- script: system_profiler SPDisplaysDataType |grep Resolution |
|
|
|
displayName: 'Get Resolution' |
|
|
|
|
|
|
|
- script: | |
|
|
|
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer |
|
|
|
pkill node |
|
|
|
appium & |
|
|
|
appium > appium.out & |
|
|
|
pkill IntegrationTestApp |
|
|
|
./build.sh CompileNative |
|
|
|
rm -rf $(osascript -e "POSIX path of (path to application id \"net.avaloniaui.avalonia.integrationtestapp\")") |
|
|
|
@ -27,16 +28,23 @@ jobs: |
|
|
|
./samples/IntegrationTestApp/bundle.sh |
|
|
|
open -n ./samples/IntegrationTestApp/bin/Debug/net7.0/osx-arm64/publish/IntegrationTestApp.app |
|
|
|
pkill IntegrationTestApp |
|
|
|
displayName: 'Build IntegrationTestApp' |
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2 |
|
|
|
displayName: 'Run Integration Tests' |
|
|
|
inputs: |
|
|
|
command: 'test' |
|
|
|
projects: 'tests/Avalonia.IntegrationTests.Appium/Avalonia.IntegrationTests.Appium.csproj' |
|
|
|
arguments: '-l "console;verbosity=detailed"' |
|
|
|
|
|
|
|
- script: | |
|
|
|
pkill IntegrationTestApp |
|
|
|
pkill node |
|
|
|
displayName: 'Stop Appium' |
|
|
|
|
|
|
|
- publish: appium.out |
|
|
|
displayName: 'Publish appium logs on failure' |
|
|
|
condition: failed() |
|
|
|
|
|
|
|
- job: Windows |
|
|
|
pool: |
|
|
|
@ -60,11 +68,13 @@ jobs: |
|
|
|
displayName: 'Start WinAppDriver' |
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2 |
|
|
|
displayName: 'Build IntegrationTestApp' |
|
|
|
inputs: |
|
|
|
command: 'build' |
|
|
|
projects: 'samples/IntegrationTestApp/IntegrationTestApp.csproj' |
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2 |
|
|
|
displayName: 'Run Integration Tests' |
|
|
|
retryCountOnTaskFailure: 3 |
|
|
|
inputs: |
|
|
|
command: 'test' |
|
|
|
|
|
|
|
@ -74,7 +74,7 @@ namespace Avalonia.IntegrationTests.Appium |
|
|
|
Assert.Equal("DoubleTapped", lastGesture.Text); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
[PlatformFact(TestPlatforms.Windows | TestPlatforms.Linux)] |
|
|
|
public void DoubleTapped_Is_Raised_2() |
|
|
|
{ |
|
|
|
var border = _session.FindElementByAccessibilityId("GestureBorder"); |
|
|
|
|
|
|
|
@ -163,7 +163,7 @@ namespace Avalonia.IntegrationTests.Appium |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[PlatformFact(TestPlatforms.MacOS)] |
|
|
|
[PlatformFact(TestPlatforms.MacOS, Skip = "Flaky test")] |
|
|
|
public void Does_Not_Switch_Space_From_FullScreen_To_Main_Desktop_When_FullScreen_Window_Clicked() |
|
|
|
{ |
|
|
|
// Issue #9565
|
|
|
|
|