Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed May 5, 2023
1 parent bba2872 commit 902eda4
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,21 @@ await RunShellTest(shell =>
},
async (shell, handler) =>
{
try {
await OpenFlyout(handler);
} catch (Exception ex) {
await shellRenderer.ToPlatform().ThrowScreenshot(MauiContext, "OpenFlyout", ex);
}

var initialBox = (shell.FlyoutHeader as IView).GetBoundingBox();

AssertionExtensions.CloseEnough(250, initialBox.Height, 0.3);

try {
await ScrollFlyoutToBottom(handler);
} catch (Exception ex) {
await shellRenderer.ToPlatform().ThrowScreenshot(MauiContext, "ScrollFlyoutToBottom", ex);
}

var scrolledBox = (shell.FlyoutHeader as IView).GetBoundingBox();
AssertionExtensions.CloseEnough(100, scrolledBox.Height, 0.3);
Expand Down

0 comments on commit 902eda4

Please sign in to comment.