summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.iOS.UITests/TestHelpers.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.iOS.UITests/TestHelpers.cs')
-rw-r--r--Xamarin.Forms.iOS.UITests/TestHelpers.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/Xamarin.Forms.iOS.UITests/TestHelpers.cs b/Xamarin.Forms.iOS.UITests/TestHelpers.cs
new file mode 100644
index 00000000..981122cb
--- /dev/null
+++ b/Xamarin.Forms.iOS.UITests/TestHelpers.cs
@@ -0,0 +1,34 @@
+using Xamarin.UITest;
+using Xamarin.UITest.Queries;
+
+namespace Xamarin.Forms.UITests
+{
+ public enum Speed
+ {
+ Slow,
+ Fast
+ }
+
+ public static class TestHelpers
+ {
+ public static int ControlGalleryMaxScrolls = 30;
+
+ public static void NavigateBack (this IApp app)
+ {
+ app.Tap (PlatformQueries.Back);
+ }
+
+ public static void NavigateToTestCases (this IApp app)
+ {
+ app.Tap (q => q.Marked ("Test Cases"));
+ app.WaitForElement (q => q.Marked ("Carousel Async Add Page Issue"));
+ }
+
+ public static AppRect MainScreenBounds (this IApp app)
+ {
+ return app.Query (q => q.Raw ("*"))[0].Rect;
+ }
+
+ }
+}
+