summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues
diff options
context:
space:
mode:
authorRui Marinho <me@ruimarinho.net>2017-10-18 17:04:03 (GMT)
committerRui Marinho <me@ruimarinho.net>2017-10-18 17:13:21 (GMT)
commit0927f1e6889a2f92864c8bfc384cfd4c3fa9c7ed (patch)
treed95537307a62704716bf07fe1bb9acef9cd569b8 /Xamarin.Forms.Controls.Issues
parent8b8d8dcfcb3a5445d740cd747d243b43358e62e4 (diff)
downloadxamarin-forms-0927f1e6889a2f92864c8bfc384cfd4c3fa9c7ed.zip
xamarin-forms-0927f1e6889a2f92864c8bfc384cfd4c3fa9c7ed.tar.gz
xamarin-forms-0927f1e6889a2f92864c8bfc384cfd4c3fa9c7ed.tar.bz2
[Packages] Update UITest and consolidate packages (#1201)
* [Packages] Update UITest and consolidate packages * [Controls] Remove old packages * [UITest] Try fix UITests iOS11 * [UITests] Use back instead of custom class
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39530.cs2
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2272.cs7
2 files changed, 6 insertions, 3 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39530.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39530.cs
index cc17290..52f514e 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39530.cs
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39530.cs
@@ -70,7 +70,7 @@ namespace Xamarin.Forms.Controls.Issues
// index out of bounds exceptions if the query for the frame and its Rect run quickly enough
RunningApp.WaitForElement(q => q.Marked("frame"));
AppRect frameBounds = RunningApp.Query (q => q.Marked ("frame"))[0].Rect;
- RunningApp.Pan (new Drag (frameBounds, frameBounds.X + 10, frameBounds.Y + 10, frameBounds.X + 100, frameBounds.Y + 100, Drag.Direction.LeftToRight));
+ RunningApp.Pan (new Drag (frameBounds, frameBounds.CenterX, frameBounds.Y + 10, frameBounds.X + 100, frameBounds.Y + 100, Drag.Direction.LeftToRight));
RunningApp.WaitForElement (q => q.Marked ("Panning: Completed"));
}
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2272.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2272.cs
index b0efc27..1444364 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2272.cs
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2272.cs
@@ -3,6 +3,7 @@
using Xamarin.Forms;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
+using System.Threading.Tasks;
#if UITEST
using NUnit.Framework;
@@ -17,7 +18,7 @@ namespace Xamarin.Forms.Controls.Issues
{
protected override void Init ()
{
- var userNameEditor = new Entry () { Text = "userNameEditorEmptyString" };
+ var userNameEditor = new Entry () { AutomationId = "userNameEditorEmptyString", Text = "userNameEditorEmptyString" };
userNameEditor.Focused += (sender, args) => {
userNameEditor.Text = "focused";
};
@@ -36,10 +37,12 @@ namespace Xamarin.Forms.Controls.Issues
#endif
public void TestFocusIsOnTheEndAfterSettingText ()
{
+ RunningApp.WaitForElement("userNameEditorEmptyString");
RunningApp.Tap (c => c.Marked ("userNameEditorEmptyString"));
RunningApp.EnterText ("1");
PressEnter ();
- Assert.Greater (RunningApp.Query (c => c.Marked ("focused1")).Length, 0);
+ var q = RunningApp.Query(c => c.Marked("userNameEditorEmptyString"));
+ Assert.AreEqual("focused1", q[0].Text);
}
void PressEnter ()