Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions src/Controls/tests/TestCases.HostApp/Issues/Issue17057.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
namespace Maui.Controls.Sample.Issues
{
[Issue(IssueTracker.Github, 17057, "Shell FlowDirection not updating properly", PlatformAffected.Android)]
public class Issue17057 : Shell
{
public Issue17057()
{
FlowDirection = FlowDirection.RightToLeft;
var flyoutItem1 = new FlyoutItem { Title = "Item1" };
var tab1 = new Tab();
tab1.Items.Add(new ShellContent { ContentTemplate = new DataTemplate(typeof(_17057Page)) });
flyoutItem1.Items.Add(tab1);
Items.Add(flyoutItem1);
}
}

public class _17057Page : ContentPage
{
public _17057Page()
{
Content = new Label
{
Text = "This is a Label",
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Center,
AutomationId = "label"
};
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#if TEST_FAILS_ON_WINDOWS // To fix the issue in windows https://github.com/dotnet/maui/issues/27947
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests.Issues
{
public class Issue17057 : _IssuesUITest
{
public Issue17057(TestDevice testDevice) : base(testDevice)
{
}
public override string Issue => "Shell FlowDirection not updating properly";

[Test]
[Category(UITestCategories.Shell)]
public void ShellFlowDirectionUpdate()
{
App.WaitForElement("label");
VerifyScreenshot();
}
}
}
#endif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading