summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TableViewUITests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TableViewUITests.cs')
-rw-r--r--Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TableViewUITests.cs76
1 files changed, 76 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TableViewUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TableViewUITests.cs
new file mode 100644
index 00000000..5f9bd80c
--- /dev/null
+++ b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TableViewUITests.cs
@@ -0,0 +1,76 @@
+using System;
+using System.Runtime;
+using NUnit.Framework;
+using Xamarin.UITest;
+using Xamarin.UITest.Android;
+using Xamarin.UITest.iOS;
+
+namespace Xamarin.Forms.Core.UITests
+{
+ [TestFixture]
+ [Category ("TableView")]
+ internal class TableViewGalleryTests : BaseTestFixture
+ {
+
+ // TODO: test sizes
+ // TODO: Port to new conventions
+
+ public TableViewGalleryTests ()
+ {
+ ShouldResetPerFixture = false;
+ }
+
+ protected override void NavigateToGallery ()
+ {
+ App.NavigateToGallery (GalleryQueries.TableViewGalleryLegacy);
+ }
+
+ [Test]
+ [Description ("Elements of section header are present")]
+ public void TableViewGalleryHeader ()
+ {
+// App.WaitForElement (q => q.Marked ("Section One"), "Timeout : Section One");
+// App.Screenshot ("Header is present");
+ }
+
+// [Test]
+// [Description ("TableCells are present")]
+// public void TableViewGalleryTableCellsArePresent ()
+// {
+// var list = App.Query (PlatformQueries.Tables);
+// Assert.AreEqual (1, list.Length);
+// App.WaitForElement (q => q.Marked ("View Cell 1"), "Timeout : View Cell 1");
+// App.WaitForElement (q => q.Marked ("View Cell 2"), "Timeout : View Cell 2");
+
+// App.Screenshot ("TableCells are present");
+// }
+
+///*******************************************************/
+///**************** Landscape tests **********************/
+///*******************************************************/
+
+// [Test]
+// [Description ("Elements of CustomHeader are present - Landscape")]
+// public void TableViewGalleryCustomHeaderLandscape ()
+// {
+// App.SetOrientationLandscape ();
+// App.Screenshot ("Rotated to Landscape");
+// TableViewGalleryHeader ();
+// App.SetOrientationPortrait ();
+// App.Screenshot ("Rotated to Portrait");
+// }
+
+// [Test]
+// [Description ("TableCells are present - Landscape")]
+// public void TableViewGalleryTableCellsArePresentLandscape ()
+// {
+// App.SetOrientationLandscape ();
+// App.Screenshot ("Rotated to Landscape");
+// TableViewGalleryTableCellsArePresent ();
+// App.SetOrientationPortrait ();
+// App.Screenshot ("Rotated to Portrait");
+// }
+
+ }
+}
+