Skip to content

Commit 229fdca

Browse files
committed
Enable test on all platforms
1 parent 125ffb1 commit 229fdca

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/Controls/tests/TestCases.HostApp/Issues/Issues16737.xaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
x:Class="Maui.Controls.Sample.Issues.Issue16737">
5-
<VerticalStackLayout>
6-
<Label Text="Picker test"/>
7-
<Picker
8-
AutomationId="picker"
5+
<VerticalStackLayout>
6+
<Label AutomationId="label"
7+
Text="Picker test"/>
8+
<Picker
99
Title="Select something"
1010
TitleColor="Red"
1111
TextColor="Red">
@@ -16,5 +16,5 @@
1616
</x:Array>
1717
</Picker.ItemsSource>
1818
</Picker>
19-
</VerticalStackLayout>
19+
</VerticalStackLayout>
2020
</ContentPage>

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue16737.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if ANDROID
2-
using NUnit.Framework;
1+
using NUnit.Framework;
32
using NUnit.Framework.Legacy;
43
using UITest.Appium;
54
using UITest.Core;
@@ -16,11 +15,10 @@ public Issue16737(TestDevice device) : base(device) { }
1615
[Category(UITestCategories.Picker)]
1716
public void Issue16737Test()
1817
{
19-
_ = App.WaitForElement("picker");
18+
_ = App.WaitForElement("label");
2019

2120
// The test passes if the title's color is red
2221
VerifyScreenshot();
2322
}
2423
}
25-
}
26-
#endif
24+
}

0 commit comments

Comments
 (0)