Repository navigation
Labels
triage/untriagedIndicates an issue requires triaging or verification
Description
Current behavior 🐛
Context: #25492
While updating unoplatform/uno to use .NET 11 rc.2, many things broke. Most have been fixed, e.g. #25651, but there are some remaining issues. For expediency, we're disabling these currently failing tests for now:
When_Resize:
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.AreEqual failed. Expected:<Windows.Graphics.SizeInt32>. Actual:<Windows.Graphics.SizeInt32>. 'expected' expression: 'appWindow.Size', 'actual' expression: 'adjustedSize'. Expected appWindow.Size { Width=1034, Height=649 } == adjustedSize { Width=1034, Height=659 }
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowAssertAreEqualFailed(Object expected, Object actual, String userMessage) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 665
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertAreEqualInterpolatedStringHandler`1.ComputeAssertion(String expectedExpression, String actualExpression) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 52
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[T](T expected, T actual, AssertAreEqualInterpolatedStringHandler`1& message, String expectedExpression, String actualExpression) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 441
at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Windowing.Given_AppWindow.When_Resize() in D:\a\1\s\src\Uno.UI.RuntimeTests\Microsoft\UI\Windowing\Given_AppWindow.cs:line 46
at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Windowing.Given_AppWindow.When_Resize() in D:\a\1\s\src\Uno.UI.RuntimeTests\Microsoft\UI\Windowing\Given_AppWindow.cs:line 52
at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass75_2.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext() in D:\a\1\s\src\SamplesApp\SamplesApp.UnitTests.Shared\Controls\UnitTest\UnitTestsControl.cs:line 1048
When_Resize_Before_Activate:
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Assert.AreEqual failed. Expected:<Windows.Graphics.SizeInt32>. Actual:<Windows.Graphics.SizeInt32>. 'expected' expression: 'appWindow.Size', 'actual' expression: 'adjustedSize'. Expected appWindow.Size { Width=1024, Height=649 } == adjustedSize { Width=1034, Height=778 }
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowAssertAreEqualFailed(Object expected, Object actual, String userMessage) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 665
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AssertAreEqualInterpolatedStringHandler`1.ComputeAssertion(String expectedExpression, String actualExpression) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 52
at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[T](T expected, T actual, AssertAreEqualInterpolatedStringHandler`1& message, String expectedExpression, String actualExpression) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 441
at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Windowing.Given_AppWindow.When_Resize_Before_Activate() in D:\a\1\s\src\Uno.UI.RuntimeTests\Microsoft\UI\Windowing\Given_AppWindow.cs:line 177
at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Windowing.Given_AppWindow.When_Resize_Before_Activate() in D:\a\1\s\src\Uno.UI.RuntimeTests\Microsoft\UI\Windowing\Given_AppWindow.cs:line 183
at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass75_2.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext() in D:\a\1\s\src\SamplesApp\SamplesApp.UnitTests.Shared\Controls\UnitTest\UnitTestsControl.cs:line 1048
When_TitleBar_Hidden_On_MacOS_Presenter_Commands_Work:
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException: Timed out waiting for condition to be met. When_TitleBar_Hidden_On_MacOS_Presenter_Commands_Work():258
at Private.Infrastructure.TestServices.WindowHelper.WaitFor(Func`1 condition, Int32 timeoutMS, String message, String callerMemberName, Int32 lineNumber) in D:\a\1\s\src\Uno.UI.RuntimeTests\IntegrationTests\common\TestServices.WindowHelper.cs:line 364
at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Windowing.Given_AppWindowTitleBar.When_TitleBar_Hidden_On_MacOS_Presenter_Commands_Work() in D:\a\1\s\src\Uno.UI.RuntimeTests\Microsoft\UI\Windowing\Given_AppWindowTitleBar.cs:line 258
at Uno.UI.RuntimeTests.Tests.Microsoft_UI_Windowing.Given_AppWindowTitleBar.When_TitleBar_Hidden_On_MacOS_Presenter_Commands_Work() in D:\a\1\s\src\Uno.UI.RuntimeTests\Microsoft\UI\Windowing\Given_AppWindowTitleBar.cs:line 267
at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass75_2.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext() in D:\a\1\s\src\SamplesApp\SamplesApp.UnitTests.Shared\Controls\UnitTest\UnitTestsControl.cs:line 1048
Expected behavior 🎯
The When_Resize, When_Resize_Before_Activate, and When_TitleBar_Hidden_On_MacOS_Presenter_Commands_Work tests are executed and pass on CI.
How to reproduce it (as minimally and precisely as possible) 🔬
No response
Workaround 🛠️
No response
Affected platforms 📱💻🖥️
Desktop (macOS)
Uno.Sdk version (and other relevant versions) 📦
No response
IDE version 🧑💻
No response
Anything else we need to know? 💬
No response
Metadata
Metadata
Assignees
Labels
triage/untriagedIndicates an issue requires triaging or verification
Activity
test(macOS): disable currently failing tests
test(macOS): disable currently failing tests
test(macOS): disable currently failing tests
test(macOS): disable currently failing tests
test(macOS): disable currently failing tests
test(windowing): Re-enable the macOS window tests