-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Bugzilla35127.cs
46 lines (43 loc) · 1.04 KB
/
Bugzilla35127.cs
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
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[Category(UITestCategories.ScrollView)]
[Category(UITestCategories.Bugzilla)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 35127, "It is possible to craft a page such that it will never display on Windows")]
public class Bugzilla35127 : TestContentPage
{
protected override void Init()
{
Content = new StackLayout
{
Children = {
new Label { Text = "See me?" },
new ScrollView {
IsVisible = false,
AutomationId = "scrollView",
Content = new Button { Text = "Click Me?" }
}
}
};
}
#if UITEST
[Test]
public void Issue35127Test()
{
RunningApp.WaitForElement(q => q.Marked("See me?"));
var count = RunningApp.Query(q => q.Marked("scrollView")).Length;
Assert.IsTrue(count == 0);
RunningApp.WaitForNoElement(q => q.Marked("Click Me?"));
}
#endif
}
}