diff --git a/src/Controls/tests/DeviceTests/Elements/Shell/ShellFlyoutTests.cs b/src/Controls/tests/DeviceTests/Elements/Shell/ShellFlyoutTests.cs index 81636111b482..209b92d2788b 100644 --- a/src/Controls/tests/DeviceTests/Elements/Shell/ShellFlyoutTests.cs +++ b/src/Controls/tests/DeviceTests/Elements/Shell/ShellFlyoutTests.cs @@ -237,7 +237,7 @@ await RunShellTest(shell => try { await OpenFlyout(handler); } catch (Exception ex) { - await shellRenderer.ToPlatform().ThrowScreenshot(MauiContext, "OpenFlyout", ex); + await handler.ToPlatform().ThrowScreenshot(MauiContext, "OpenFlyout", ex); } var initialBox = (shell.FlyoutHeader as IView).GetBoundingBox(); @@ -247,7 +247,7 @@ await RunShellTest(shell => try { await ScrollFlyoutToBottom(handler); } catch (Exception ex) { - await shellRenderer.ToPlatform().ThrowScreenshot(MauiContext, "ScrollFlyoutToBottom", ex); + await handler.ToPlatform().ThrowScreenshot(MauiContext, "ScrollFlyoutToBottom", ex); } var scrolledBox = (shell.FlyoutHeader as IView).GetBoundingBox();