diff --git a/samples/Uno.Toolkit.Samples/Uno.Toolkit.Samples.Shared/Content/NestedSamples/FluentNavigationBarSampleNestedPage1.xaml b/samples/Uno.Toolkit.Samples/Uno.Toolkit.Samples.Shared/Content/NestedSamples/FluentNavigationBarSampleNestedPage1.xaml index bc34c91d6..145462a0e 100644 --- a/samples/Uno.Toolkit.Samples/Uno.Toolkit.Samples.Shared/Content/NestedSamples/FluentNavigationBarSampleNestedPage1.xaml +++ b/samples/Uno.Toolkit.Samples/Uno.Toolkit.Samples.Shared/Content/NestedSamples/FluentNavigationBarSampleNestedPage1.xaml @@ -17,6 +17,7 @@ + Initialize() new[] { AppBarButton.LabelProperty }, new[] { AppBarButton.IconProperty }, new[] { AppBarButton.IconProperty, BitmapIcon.UriSourceProperty }, - new[] { AppBarButton.IconProperty, IconElement.ForegroundProperty }, - new[] { AppBarButton.IconProperty, IconElement.ForegroundProperty, SolidColorBrush.ColorProperty }, new[] { AppBarButton.ContentProperty }, new[] { AppBarButton.ContentProperty, FrameworkElement.VisibilityProperty }, new[] { AppBarButton.OpacityProperty }, diff --git a/src/Uno.Toolkit.UITest/Controls/NavigationBar/Given_NavigationBar.cs b/src/Uno.Toolkit.UITest/Controls/NavigationBar/Given_NavigationBar.cs index 4bf51ee6b..8c79779ba 100644 --- a/src/Uno.Toolkit.UITest/Controls/NavigationBar/Given_NavigationBar.cs +++ b/src/Uno.Toolkit.UITest/Controls/NavigationBar/Given_NavigationBar.cs @@ -107,5 +107,19 @@ public void NavBar_Page_Can_Go_Back() App.WaitForNoElement("M3Page2NavBar", "Timed out waiting for no Page 2 Nav Bar"); } + + [Test] + [AutoRetry] + public void NavBar_AppBarButton_With_Icon_Click() + { + NavigateToNestedSample("FluentNavigationBarSampleNestedPage"); + + PlatformHelpers.On( + iOS: () => App.Tap("FluentPage1NavBarPrimaryCommand3"), + Android: () => App.Tap("FluentPage1NavBarPrimaryCommand3") + ); + + App.WaitForElement("FluentPage2NavBar", "Timed out waiting for Page 2 Nav Bar"); + } } }