1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
using NUnit.Framework;
using Xamarin.Forms.CustomAttributes;
using Xamarin.UITest;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Cells")]
internal class ViewCellGalleryTests : BaseTestFixture
{
// // TODO
// TODO: Port to new conventions
public ViewCellGalleryTests ()
{
ShouldResetPerFixture = false;
}
protected override void NavigateToGallery ()
{
App.NavigateToGallery (GalleryQueries.ViewCellGalleryLegacy);
}
// public void AllElementsPresent ()
// {
// App.WaitForElement (q => q.Marked ("Testing"), "Timeout : Testing");
// App.WaitForElement (q => q.Marked ("0"), "Timeout : 0");
// App.WaitForElement (q => q.Marked ("BrandLabel"), "Timeout : BrandLabel");
// App.Screenshot ("All elements exist");
// }
[Test]
[UiTest (typeof(ViewCell))]
[Description ("All elements exist")]
public void ViewCellGalleryScrollDownForAllElements ()
{
// AllElementsPresent ();
// App.ScrollForElement ("* marked:'0'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
// App.ScrollForElement ("* marked:'1'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
// App.ScrollForElement ("* marked:'2'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
// App.ScrollForElement ("* marked:'3'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
// App.ScrollForElement ("* marked:'4'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
// App.Screenshot ("All ViewCells exist");
}
///*******************************************************/
///**************** Landscape tests **********************/
///*******************************************************/
// [Test]
// [Description ("All elements exist - Landscape")]
// public void ViewCellGalleryScrollDownForAllElementsLandscape ()
// {
// App.SetOrientationLandscape ();
// App.Screenshot ("Rotated to Landscape");
// ViewCellGalleryScrollDownForAllElements ();
// App.SetOrientationPortrait ();
// App.Screenshot ("Rotated to Portrait");
// }
}
}
|