Skip to content

Commit

Permalink
Modify FlyoutHeaderAdaptsToMinimumHeight test to work better on CI (#…
Browse files Browse the repository at this point in the history
…19685)

Co-authored-by: Mike Corsaro <mikecorsaro@microsoft.com>
  • Loading branch information
Foda and Mike Corsaro authored Jan 4, 2024
1 parent bd52243 commit 4091224
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ await RunShellTest(shell =>
{
await OpenFlyout(handler);
var flyoutFrame = GetFrameRelativeToFlyout(handler, shell.FlyoutHeader as IView);
AssertionExtensions.CloseEnough(flyoutFrame.Height, 30);

await AssertionExtensions.AssertEventually(() =>
{
return Math.Abs(30 - flyoutFrame.Height) < 0.2;
}, message: $"Expected: {30}. Actual: {flyoutFrame.Height}. Diff: {Math.Abs(30 - flyoutFrame.Height)}");
});
}

Expand Down

0 comments on commit 4091224

Please sign in to comment.