We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FlyoutHeaderAdaptsToMinimumHeight
1 parent bd52243 commit 4091224Copy full SHA for 4091224
src/Controls/tests/DeviceTests/Elements/Shell/ShellFlyoutTests.cs
@@ -109,7 +109,11 @@ await RunShellTest(shell =>
109
{
110
await OpenFlyout(handler);
111
var flyoutFrame = GetFrameRelativeToFlyout(handler, shell.FlyoutHeader as IView);
112
- AssertionExtensions.CloseEnough(flyoutFrame.Height, 30);
+
113
+ await AssertionExtensions.AssertEventually(() =>
114
+ {
115
+ return Math.Abs(30 - flyoutFrame.Height) < 0.2;
116
+ }, message: $"Expected: {30}. Actual: {flyoutFrame.Height}. Diff: {Math.Abs(30 - flyoutFrame.Height)}");
117
});
118
}
119
0 commit comments