summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue416.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue416.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue416.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue416.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue416.cs
new file mode 100644
index 00000000..ec71d472
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue416.cs
@@ -0,0 +1,41 @@
+´╗┐using System;
+using System.Linq;
+
+using Xamarin.Forms.CustomAttributes;
+
+#if UITEST
+using NUnit.Framework;
+using Xamarin.UITest;
+#endif
+
+namespace Xamarin.Forms.Controls
+{
+ [Preserve (AllMembers = true)]
+ [Issue (IssueTracker.Github, 416, "NavigationPage in PushModal does not show NavigationBar", PlatformAffected.Android, NavigationBehavior.PushModalAsync)]
+ public class Issue416 : TestNavigationPage
+ {
+ protected override void Init ()
+ {
+ Navigation.PushAsync (new ContentPage {
+ Title = "Test Page",
+ Content = new Label {
+ Text = "I should have a nav bar"
+ }
+ });
+ }
+
+ // Issue 416
+ // NavigationBar should be visible in modal
+
+#if UITEST
+ [Test]
+ [UiTest (typeof(NavigationPage))]
+ public void Issue416TestsNavBarPresent ()
+ {
+ RunningApp.WaitForElement (q => q.Marked ("Test Page"));
+ RunningApp.WaitForElement (q => q.Marked ("I should have a nav bar"));
+ RunningApp.Screenshot ("All element present");
+ }
+#endif
+ }
+}