diff --git a/src/Controls/tests/DeviceTests/Elements/Shell/ShellFlyoutTests.cs b/src/Controls/tests/DeviceTests/Elements/Shell/ShellFlyoutTests.cs index 62da2bdc4e96..81636111b482 100644 --- a/src/Controls/tests/DeviceTests/Elements/Shell/ShellFlyoutTests.cs +++ b/src/Controls/tests/DeviceTests/Elements/Shell/ShellFlyoutTests.cs @@ -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);