Skip to content

SamplesApp shell: test-host guard records a pane transition frame #25276

Closed

Description

@MartinZikmund

Current behavior 🐛

The Given_ShellLayout test-host guard fails consistently on master and PR builds, in the cleanup of When_Focus_Mode_Exit_Button_Idles_It_Hides_Until_Activity:

Assert.IsTrue failed. 'condition' expression: 'IsBack()'. The test host was at 963,80,637,0 and is now at 643,80,637,0.

It fails on Android Skia / Android WebGPU / Android+NativeAOT group 3 in master builds 238881, 238889 and 238906, and on Linux and Windows Skia in PR builds. The test body itself passes.

Expected behavior 🎯

The guard compares where the test host settles, not a transition frame.

How to reproduce it (as minimally and precisely as possible) 🔬

In the Android group, When_Browser_Toggled_Pane_And_Toggle_Follow_View_Model runs right before it. That test opens the shell's inline browser pane and closes it, waiting only for idle. Tracing the host's X on Skia desktop after the close shows it isn't monotonic:

start 508 | open, WaitForIdle 399 | close, WaitForIdle 828 | then 688, 637, 599 ... 509, 508 over ~100 ms

The close transition's Grid.Column keyframe (an ObjectAnimationUsingKeyFrames at KeyTime 0) lands before the content slide starts, so the host first jumps a full pane width away (+320) and then slides back. The guard's IsBack() can see the pre-transition position, and on a slow agent the next test's [TestInitialize] records the +320 position as its baseline. 963 → 643 on Android is exactly that +320.

Workaround 🛠️

None needed; this is test infrastructure.

Affected platforms 📱💻🖥️

Android, Skia Desktop

Uno.Sdk version (and other relevant versions) 📦

master (2026-10-11)

IDE version 🧑‍💻

N/A

Anything else we need to know? 💬

When_Automation_Run_Sample_Keeps_Toolbar_Offset on Linux (origin.X -320 instead of 0) is probably the same transient. It is the first test of the class there and reads the host right after Given_ShellHomeView's tests, but it hasn't been reproduced locally.

Activity

  1. added
    kind/bug
    platform/android 🤖
    area/tests 🧪
    7.0
    on Oct 11, 2026
  2. Xiaoy312 commented on Oct 22, 2026

    @Xiaoy312
    Contributor

    The same guard also fails in the cleanup of When_Browser_Toggled_Pane_And_Toggle_Follow_View_Model itself, not only in the cleanup of the test after it:

    SamplesApp.Tests.Given_ShellLayout.When_Browser_Toggled_Pane_And_Toggle_Follow_View_Model Cleanup
    Assert.IsTrue failed. 'condition' expression: 'IsBack()'. The test host was at 672.04865,80,636.99994,0 and is now at 643,80,637,0.
    

    Seen on Android Skia group 3 in PR builds 240801 (663.18 → 643) and 240835 (672.05 → 643). Across all branches in the last 30 days, the ... Cleanup entry failed 16 times on master and 29 times on PR builds. The test body passed every time. The offsets are 20–30 px rather than the full +320, which fits IsBack() reading a frame partway through the slide back, as described above. The lane's retry clears it.

  3. self-assigned this
    on Oct 22, 2026
  4. added a commit that references this issue on Oct 23, 2026
    5c54f5a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

7.0area/tests 🧪kind/bugplatform/android 🤖

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions