Skip to content

Commit

Permalink
Try to upload PageSource #2
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkatz6 committed Jun 28, 2024
1 parent 04c39b3 commit 0ba5c62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions azure-pipelines-integrationtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
3 changes: 3 additions & 0 deletions tests/Avalonia.IntegrationTests.Appium/TrayIconTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0ba5c62

Please sign in to comment.