Skip to content

Commit 01f1d3d

Browse files
kubaflojfversluis
authored andcommitted
Added a UITest
1 parent 99d17a1 commit 01f1d3d

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<Shell xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4+
xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls"
5+
ios:Page.LargeTitleDisplay="Always"
6+
x:Class="Maui.Controls.Sample.Issues.Issue12156">
7+
8+
<ShellContent Title="Home">
9+
<ContentPage>
10+
<Label
11+
Text="Issue 12156"
12+
AutomationId="Label"
13+
VerticalOptions="Center"
14+
HorizontalOptions="Center"/>
15+
</ContentPage>
16+
</ShellContent>
17+
18+
</Shell>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace Maui.Controls.Sample.Issues;
2+
3+
[Issue(IssueTracker.Github, 12156, "iOS Page.LargeTitleDisplay does not work on iOS", PlatformAffected.iOS)]
4+
public partial class Issue12156 : Shell
5+
{
6+
public Issue12156()
7+
{
8+
InitializeComponent();
9+
}
10+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#if TEST_FAILS_ON_ANDROID && TEST_FAILS_ON_ANDROID && TEST_FAILS_ON_WINDOWS
2+
using NUnit.Framework;
3+
using UITest.Appium;
4+
using UITest.Core;
5+
6+
namespace Microsoft.Maui.TestCases.Tests.Issues;
7+
8+
public class Issue12156 : _IssuesUITest
9+
{
10+
public Issue12156(TestDevice testDevice) : base(testDevice)
11+
{
12+
}
13+
14+
public override string Issue => "iOS Page.LargeTitleDisplay does not work on iOS";
15+
16+
[Test]
17+
[Category(UITestCategories.TitleView)]
18+
public void LargeTitleDisplayWorks()
19+
{
20+
App.WaitForElement("Label");
21+
VerifyScreenshot();
22+
}
23+
}
24+
#endif

0 commit comments

Comments
 (0)