blob: 4f2a733a18e075615c20d751559b95cddd894da1 (
plain)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
using NUnit.Framework;
using Xamarin.UITest;
using System;
using System.Threading;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Templated")]
internal class BoundViewGalleryTests : BaseTestFixture
{
// TODO: Port to new conventions
public BoundViewGalleryTests ()
{
ShouldResetPerFixture = false;
}
protected override void NavigateToGallery ()
{
App.NavigateToGallery (GalleryQueries.BoundPageGalleryLegacy);
}
//void AllElementsPresent ()
//{
// App.WaitForElement (q => q.Button ("Click Me!"));
// App.Screenshot ("All elements present");
//}
[Test]
[Description ("Test bound view navigation")]
public void BoundViewGalleryNavigateToAndBack ()
{
App.Screenshot ("At Gallery");
// AllElementsPresent ();
// App.Tap (q => q.Button ("Click Me!"));
// App.WaitForElement (q => q.Marked ("Second Page"), "Timeout : Second Page");
// App.Screenshot ("Navigation to next page successful");
// App.Tap (PlatformQueries.Back);
// App.WaitForElement (q => q.Button ("Click Me!"), "Timeout : Click Me!");
// App.Screenshot ("Navigation back successful");
}
// [Test]
// [Description ("Test button click")]
// public void BoundViewGalleryClickButton ()
// {
// App.Tap (q => q.Button ("Click Me!"));
// App.WaitForElement (q => q.Marked ("Second Page"), "Timeout : Second Page");
// }
// [Test]
// [Description ("Verify all elements are preset - landscape")]
// public void BoundViewGalleryAllElementsPresentLandscape ()
// {
// App.SetOrientationLandscape ();
// Thread.Sleep (1000);
// App.Screenshot ("Rotated to Landscape");
// AllElementsPresent ();
// App.SetOrientationPortrait ();
// App.Screenshot ("Rotated to Portrait");
// }
// [Test]
// [Description ("Test bound view navigation- landscape")]
// public void BoundViewGalleryNavigateToAndBackLandscape ()
// {
// App.SetOrientationLandscape ();
// Thread.Sleep (1000);
// App.Screenshot ("Rotated to Landscape");
// BoundViewGalleryNavigateToAndBack ();
// App.SetOrientationPortrait ();
// App.Screenshot ("Rotated to Portrait");
// }
// [Test]
// [Description ("Test button click - landscape")]
// public void BoundViewGalleryClickButtonLandscape ()
// {
// App.SetOrientationLandscape ();
// Thread.Sleep (1000);
// App.Screenshot ("Rotated to Landscape");
// BoundViewGalleryClickButton ();
// App.SetOrientationPortrait ();
// App.Screenshot ("Rotated to Portrait");
// }
}
}
|