diff --git a/azure-pipelines-integrationtests.yml b/azure-pipelines-integrationtests.yml index ce9b38c44de..12bf276716f 100644 --- a/azure-pipelines-integrationtests.yml +++ b/azure-pipelines-integrationtests.yml @@ -93,3 +93,7 @@ jobs: inputs: OperationType: 'Stop' displayName: 'Stop WinAppDriver' + + - publish: 'tests/Avalonia.IntegrationTests.Appium/bin/Debug/net8.0/rootSource.xml' + displayName: 'Publish appium logs on failure' + condition: always() diff --git a/tests/Avalonia.IntegrationTests.Appium/TrayIconTests.cs b/tests/Avalonia.IntegrationTests.Appium/TrayIconTests.cs index 94d4ab1d361..cf4733fa384 100644 --- a/tests/Avalonia.IntegrationTests.Appium/TrayIconTests.cs +++ b/tests/Avalonia.IntegrationTests.Appium/TrayIconTests.cs @@ -105,6 +105,9 @@ public void Can_Toggle_TrayIcon_Visibility() ?? throw new InvalidOperationException("SystemTrayIcon cannot be found."); trayIconsButton.Click(); + var rootSource = session.PageSource; + File.WriteAllText(Path.Combine(AppContext.BaseDirectory, "rootSource.xml"), rootSource); + // win11: TopLevelWindowForOverflowXamlIsland // win10: NotifyIconOverflowWindow var trayIconsFlyout = session.FindElementsByClassName("TopLevelWindowForOverflowXamlIsland").FirstOrDefault()