uno.toolkit.ui icon indicating copy to clipboard operation
uno.toolkit.ui copied to clipboard

[Android][Canary] AutoLayout test failure

Open kazo0 opened this issue 1 year ago • 1 comments

The Toolkit Canaries are failing for a specific AutoLayout UI Test on Android

Failing Tests: 1. When_Hug_With_CounterAlignment() --- Details: Failed: When_Hug_With_CounterAlignment() [AssertFailedException] Expected value to approximate 0.0 +/- 1.0, but 107.0 differed by 107.0.

https://dev.azure.com/uno-platform/Uno%20Platform/_TestManagement/Runs?runId=2681092&_a=resultSummary&resultId=100000

This is only failing on the canaries so we need to take the latest main of the Toolkit repo and identify what later version of the packages (probably Uno.WinUI) that this test starts failing with.

Last known version of Uno.WinUI that this seemed to be working with was 5.2.0-dev.124. Let's identify which -dev package this test starts failing with

kazo0 avatar Feb 23 '24 17:02 kazo0

Starting from the merge of the multi-window work, we no longer wrap the Window content in a root Border element anymore and since the affected runtime test was using the RequiresFullWindowAttribute, we were setting the app's Window.Content to the AutoLayout and, in the end, it was now becoming the direct element of the Activity's ContentView. So there seems to be some sort of AutoLayout issue when it doesn't have a UIElement as a direct parent, perhaps.

For now, we wrap the AutoLayout in a Border in the runtime test to workaround the issue but this would need to be investigated further to fix.

cc: @carldebilly / @Robert-Louis

kazo0 avatar Mar 07 '24 15:03 kazo0