summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-10-31 09:22:54 -0600
committerRui Marinho <me@ruimarinho.net>2016-10-31 15:22:54 +0000
commit0d6a6c5f17eb4e50ad7b96a7e4ae1e24c6fc3c18 (patch)
tree3fa64327baa9049be6f6f3e1c4260e3a34e4d4ff /Xamarin.Forms.Controls.Issues
parentc9edd1a382298d4de622b186d6ef3af69d5f55ac (diff)
downloadxamarin-forms-0d6a6c5f17eb4e50ad7b96a7e4ae1e24c6fc3c18.tar.gz
xamarin-forms-0d6a6c5f17eb4e50ad7b96a7e4ae1e24c6fc3c18.tar.bz2
xamarin-forms-0d6a6c5f17eb4e50ad7b96a7e4ae1e24c6fc3c18.zip
Attempt to get UI test for 44166 working on iOS (#485)
* Attempt to get UI test for 44166 working on iOS * Another attempt to get this running consistently on iOS * Adding screenshots so I can figure out why this doesn't work when XTC runs it * Maybe there's confusion between the back buttons? * Hey, it works now! Removing the debugging stuff. * Clean up extra build constants
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44166.cs21
1 files changed, 11 insertions, 10 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44166.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44166.cs
index 40264f07..fbbd68a0 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44166.cs
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44166.cs
@@ -1,9 +1,9 @@
using System;
-using System.Diagnostics;
-using System.Threading;
-using System.Threading.Tasks;
+using System.Collections.ObjectModel;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
+using System.Threading;
+using System.Diagnostics;
#if UITEST
using Xamarin.UITest;
@@ -20,10 +20,10 @@ namespace Xamarin.Forms.Controls
{
var label = new Label() { Text = "Testing..." };
- var goButton = new Button { Text = "Go" };
+ var goButton = new Button { Text = "Go", AutomationId = "Go" };
goButton.Clicked += (sender, args) => Application.Current.MainPage = new _44166MDP();
- var gcButton = new Button { Text = "GC" };
+ var gcButton = new Button { Text = "GC", AutomationId = "GC" };
gcButton.Clicked += (sender, args) =>
{
GC.Collect();
@@ -68,12 +68,13 @@ namespace Xamarin.Forms.Controls
RunningApp.WaitForElement(q => q.Marked("Go"));
RunningApp.Tap(q => q.Marked("Go"));
- RunningApp.WaitForElement(q => q.Marked("Back"));
- RunningApp.Tap(q => q.Marked("Back"));
+ RunningApp.WaitForElement(q => q.Marked("Previous"));
+ RunningApp.Tap(q => q.Marked("Previous"));
+
+ RunningApp.WaitForElement(q => q.Marked("GC"));
for (var n = 0; n < 10; n++)
{
- RunningApp.WaitForElement(q => q.Marked("GC"));
RunningApp.Tap(q => q.Marked("GC"));
if (RunningApp.Query(q => q.Marked("Success")).Length > 0)
@@ -141,7 +142,7 @@ namespace Xamarin.Forms.Controls
Debug.WriteLine($"++++++++ {nameof(_44166Master)} constructor, {Counter} allocated");
Title = "Master";
- var goButton = new Button { Text = "Back" };
+ var goButton = new Button { Text = "Return", AutomationId = "Return"};
goButton.Clicked += (sender, args) => Application.Current.MainPage = new Bugzilla44166();
Content = new StackLayout
@@ -188,7 +189,7 @@ namespace Xamarin.Forms.Controls
Interlocked.Increment(ref Counter);
Debug.WriteLine($"++++++++ {nameof(_44166NavContent)} constructor, {Counter} allocated");
- var goButton = new Button { Text = "Back" };
+ var goButton = new Button { Text = "Previous", AutomationId = "Previous" };
goButton.Clicked += (sender, args) => Application.Current.MainPage = new Bugzilla44166();
Content = new StackLayout