Create UITest for issue B44476 (#5859)
authorpuppetSpace <mobscene_dude@hotmail.com>
Wed, 10 Apr 2019 16:43:10 +0000 (18:43 +0200)
committerSamantha Houts <samhouts@users.noreply.github.com>
Wed, 10 Apr 2019 16:43:10 +0000 (09:43 -0700)
fixes #2381

Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44476.cs

index 1042230..e9e8c97 100644 (file)
@@ -15,7 +15,6 @@ namespace Xamarin.Forms.Controls.Issues
                protected override void Init()
                {
                        BackgroundColor = Color.Maroon;
-                       
                        PushAsync(new MasterDetailPage
                        {
                                Title = "Bugzilla Issue 44476",
@@ -52,5 +51,17 @@ namespace Xamarin.Forms.Controls.Issues
                                },
                        });
                }
+
+#if UITEST
+               [Test]
+               [Description("Verify that label with text 'This should be visible' is visible")]
+               [UiTest(typeof(MasterDetailPage))]
+               public void Issue44476TestUnwantedMargin()
+               {
+                       RunningApp.WaitForElement(q => q.Marked("This should be visible."));
+               }
+#endif
        }
+
+
 }
\ No newline at end of file