From 6265117611bfd5bb84a3c582c67071775fa9a1ca Mon Sep 17 00:00:00 2001 From: Marcel Wagner Date: Tue, 4 Aug 2020 20:19:48 +0200 Subject: [PATCH] Fix issue with TextCommandBarFlyout not opening when using custom button (#3022) * Fix issue with TextCommandBarFlyout not opening when using custom button * Remove selectionflyout setter * Fix crash on < RS5 --- .../TextCommandBarFlyoutTests.cs | 20 ++++++++++++ .../TestUI/ExtraCommandBarFlyoutPage.xaml | 6 ++-- .../TestUI/ExtraCommandBarFlyoutPage.xaml.cs | 31 ++++++++++++++++++- dev/CommandBarFlyout/TextCommandBarFlyout.cpp | 5 +++ 4 files changed, 59 insertions(+), 3 deletions(-) diff --git a/dev/CommandBarFlyout/InteractionTests/TextCommandBarFlyoutTests.cs b/dev/CommandBarFlyout/InteractionTests/TextCommandBarFlyoutTests.cs index e04d7b53e0..e9b243cb85 100644 --- a/dev/CommandBarFlyout/InteractionTests/TextCommandBarFlyoutTests.cs +++ b/dev/CommandBarFlyout/InteractionTests/TextCommandBarFlyoutTests.cs @@ -648,6 +648,26 @@ public void ValidateUnhandledKeysOnNonTransientFlyoutDoNotCloseFlyout() } } + [TestMethod] + public void VerifyTextCommandBarRemainsOpenWithItems() + { + using (var setup = new TestSetupHelper(new[] { "CommandBarFlyout Tests", "Extra CommandBarFlyout Tests" })) + { + Log.Comment("Clear the clipboard."); + FindElement.ById