From 08c75fc1051c16afcf65eccbe7512386e547f1bd Mon Sep 17 00:00:00 2001 From: Ivo Petrov <48355182+ivaylo-matov@users.noreply.github.com> Date: Fri, 3 May 2024 13:15:10 +0100 Subject: [PATCH] failing test fix UnpinPreviewBubble() was not updating the nodeViewModel --- src/DynamoCoreWpf/Views/Preview/PreviewControl.xaml.cs | 1 + test/DynamoCoreWpfTests/PreviewBubbleTests.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DynamoCoreWpf/Views/Preview/PreviewControl.xaml.cs b/src/DynamoCoreWpf/Views/Preview/PreviewControl.xaml.cs index f19bb48e582..f6fa2b2214d 100644 --- a/src/DynamoCoreWpf/Views/Preview/PreviewControl.xaml.cs +++ b/src/DynamoCoreWpf/Views/Preview/PreviewControl.xaml.cs @@ -186,6 +186,7 @@ internal void HidePreviewBubble() internal void UnpinPreviewBubble() { StaysOpen = false; + nodeViewModel.PreviewPinned = false; this.HidePreviewBubble(); } diff --git a/test/DynamoCoreWpfTests/PreviewBubbleTests.cs b/test/DynamoCoreWpfTests/PreviewBubbleTests.cs index 4648bd2923c..3150e97956f 100644 --- a/test/DynamoCoreWpfTests/PreviewBubbleTests.cs +++ b/test/DynamoCoreWpfTests/PreviewBubbleTests.cs @@ -81,7 +81,7 @@ public void PreviewBubbleVisible_MouseMoveOutOfNode() } [Test] - public void PreviewBubbleHiiden_OnFrozenNode() + public void PreviewBubbleHidden_OnFrozenNode() { Open(@"core\DetailedPreviewMargin_Test.dyn"); var nodeView = NodeViewWithGuid("7828a9dd-88e6-49f4-9ed3-72e355f89bcc");