Skip to content

Commit 4091224

Browse files
FodaMike Corsaro
and
Mike Corsaro
authored
Modify FlyoutHeaderAdaptsToMinimumHeight test to work better on CI (#19685)
Co-authored-by: Mike Corsaro <mikecorsaro@microsoft.com>
1 parent bd52243 commit 4091224

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Controls/tests/DeviceTests/Elements/Shell/ShellFlyoutTests.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ await RunShellTest(shell =>
109109
{
110110
await OpenFlyout(handler);
111111
var flyoutFrame = GetFrameRelativeToFlyout(handler, shell.FlyoutHeader as IView);
112-
AssertionExtensions.CloseEnough(flyoutFrame.Height, 30);
112+
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)}");
113117
});
114118
}
115119

0 commit comments

Comments
 (0)