diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/ShellFlowDirectionUpdate.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/ShellFlowDirectionUpdate.png new file mode 100644 index 000000000000..297eb2c85753 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/ShellFlowDirectionUpdate.png differ diff --git a/src/Controls/tests/TestCases.HostApp/Issues/Issue17057.cs b/src/Controls/tests/TestCases.HostApp/Issues/Issue17057.cs new file mode 100644 index 000000000000..b6ad7fe4d591 --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/Issues/Issue17057.cs @@ -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" + }; + } + } +} diff --git a/src/Controls/tests/TestCases.Mac.Tests/snapshots/mac/ShellFlowDirectionUpdate.png b/src/Controls/tests/TestCases.Mac.Tests/snapshots/mac/ShellFlowDirectionUpdate.png new file mode 100644 index 000000000000..6e80b295f641 Binary files /dev/null and b/src/Controls/tests/TestCases.Mac.Tests/snapshots/mac/ShellFlowDirectionUpdate.png differ diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17057.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17057.cs new file mode 100644 index 000000000000..97b019d89ecf --- /dev/null +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17057.cs @@ -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 \ No newline at end of file diff --git a/src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ShellFlowDirectionUpdate.png b/src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ShellFlowDirectionUpdate.png new file mode 100644 index 000000000000..cc68961cc012 Binary files /dev/null and b/src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/ShellFlowDirectionUpdate.png differ