summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.iOS.UITests/Tests
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-11-16 14:07:30 -0700
committerJason Smith <jason.smith@xamarin.com>2016-11-16 13:07:30 -0800
commit122f0e3e6060711d6c3b2b8523236b8a057434df (patch)
tree719b2a3f4a3146602e764ebeca3939b8788db1a8 /Xamarin.Forms.Core.iOS.UITests/Tests
parentacc6efb3d7d502d0a40020ec86eaff4d018de8be (diff)
downloadxamarin-forms-122f0e3e6060711d6c3b2b8523236b8a057434df.tar.gz
xamarin-forms-122f0e3e6060711d6c3b2b8523236b8a057434df.tar.bz2
xamarin-forms-122f0e3e6060711d6c3b2b8523236b8a057434df.zip
Run multiple UI tests without restarting ControlGallery (#539)
* Allow UI tests to bypass "manual" navigation to isses pages * Add missing Preserve attribute * Make Issue198 test work with direct navigation * Remove empty UI tests * Fix error handling for iOS * Use navigation which works for subsequent TestNavigationPages on iOS * Fix race condition in 39530 test Remove master page nesting when doing direct nav for UI tests * Set up and run a single instance of Control Gallery for UI tests * Force NavigateToIssue to wait for main page appearing to deal with iOS timing * Move remaining UI tests into Issues namespace * Change the connection check URL so it'll work on iOS * Make Appearing Gallery tests work without restarting app * Prevent ContextActions tests from stepping on each other * Make context menu test more robust * Move ButtonExtensions back to Controls namespace * Have test 774 dismiss the action sheet before ending * Update UITest package to 2.0.0 stable * Make 2948 restore orientation when it's done * Null check on PageController before calling SendDisappearing * Adding a wait for the root page in the core tests * Add consecutive tests reset to prevent memory slog on older iOS devices
Diffstat (limited to 'Xamarin.Forms.Core.iOS.UITests/Tests')
-rw-r--r--Xamarin.Forms.Core.iOS.UITests/Tests/AppearingUITests.cs10
-rw-r--r--Xamarin.Forms.Core.iOS.UITests/Tests/ContextActionsUITests.cs6
-rw-r--r--Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-UnevenListTests.cs1
3 files changed, 10 insertions, 7 deletions
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/AppearingUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/AppearingUITests.cs
index 4b37ea9f..1e624611 100644
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/AppearingUITests.cs
+++ b/Xamarin.Forms.Core.iOS.UITests/Tests/AppearingUITests.cs
@@ -6,9 +6,8 @@ namespace Xamarin.Forms.Core.UITests
[Category(UITestCategories.LifeCycle)]
internal class AppearingUITests : BaseTestFixture
{
- public AppearingUITests ()
+ public AppearingUITests()
{
- ShouldResetPerFixture = false;
}
protected override void NavigateToGallery ()
@@ -16,6 +15,13 @@ namespace Xamarin.Forms.Core.UITests
App.NavigateToGallery (GalleryQueries.AppearingGallery);
}
+ protected override void TestTearDown()
+ {
+ base.TestTearDown();
+ ResetApp();
+ NavigateToGallery();
+ }
+
[Test]
public void AppearingNavigationPage ()
{
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/ContextActionsUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/ContextActionsUITests.cs
index a3ae1063..d681d476 100644
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/ContextActionsUITests.cs
+++ b/Xamarin.Forms.Core.iOS.UITests/Tests/ContextActionsUITests.cs
@@ -16,7 +16,6 @@ namespace Xamarin.Forms.Core.UITests
public ContextActionsListUITests ()
{
- ShouldResetPerFixture = false;
}
protected override void NavigateToGallery ()
@@ -46,12 +45,12 @@ namespace Xamarin.Forms.Core.UITests
public void ContextActionsDelete ()
{
// mark is an icon on android
- App.TouchAndHold (q => q.Marked (cell0));
+ App.TouchAndHold (q => q.Marked (cell1));
App.WaitForElement (q => q.Marked (delete));
App.Screenshot ("I have actions!");
App.Tap (q => q.Marked (delete));
- App.WaitForNoElement (q => q.Marked (cell0));
+ App.WaitForNoElement (q => q.Marked (cell1));
App.Screenshot ("Deleted cell 0");
}
#endif
@@ -89,7 +88,6 @@ namespace Xamarin.Forms.Core.UITests
{
public ContextActionsTableUITests ()
{
- ShouldResetPerFixture = false;
}
protected override void NavigateToGallery ()
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-UnevenListTests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-UnevenListTests.cs
index 86a39ad3..7e0cebf1 100644
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-UnevenListTests.cs
+++ b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-UnevenListTests.cs
@@ -10,7 +10,6 @@ namespace Xamarin.Forms.Core.UITests
{
public UnevenListTests ()
{
- ShouldResetPerFixture = false;
}
protected override void NavigateToGallery ()