Skip to content

Add headless coverage for the ItemsSource sample - #1115

Merged
wieslawsoltes merged 2 commits into
masterfrom
agent/issue-1094-itemssource-example
Aug 18, 2026
Merged

Add headless coverage for the ItemsSource sample#1115
wieslawsoltes merged 2 commits into
masterfrom
agent/issue-1094-itemssource-example

Conversation

@wieslawsoltes

Copy link
Copy Markdown
Owner

Summary

  • add an isolated Avalonia Headless test project for DockXamlSample
  • instantiate the real compiled ItemsSourceExample XAML and mount it in a headless window
  • verify the two initial documents render as tabs
  • execute AddDocumentCommand and verify the source collection, generated dockables, tab items, and rendered Document 1 header all update

Context

The original April reproduction no longer fails on current master; later compiled-binding/sample changes restored the behavior, but the issue remained open and existing tests exercised only the model pipeline. This PR adds end-to-end regression coverage for the exact sample and user flow.

Validation

  • dotnet test tests/DockXamlSample.HeadlessTests/DockXamlSample.HeadlessTests.csproj --no-restore --logger "console;verbosity=minimal" (1 passed)
  • dotnet build tests/DockXamlSample.HeadlessTests/DockXamlSample.HeadlessTests.csproj -c Release --no-restore --nologo (0 errors)
  • dotnet sln Dock.slnx list includes the new test project
  • git diff --check

Fixes #1094

@wieslawsoltes
wieslawsoltes marked this pull request as ready for review July 14, 2026 21:30
@wieslawsoltes
wieslawsoltes merged commit 71dd5b9 into master Aug 18, 2026
4 checks passed
@wieslawsoltes
wieslawsoltes deleted the agent/issue-1094-itemssource-example branch August 18, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DockXamlSample - ItemsSourceExample not working

1 participant