diff --git a/src/Controls/tests/TestCases.Android.Tests/snapshots/android/SwipeViewShouldNotClose.png b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/SwipeViewShouldNotClose.png new file mode 100644 index 000000000000..03739474c7f3 Binary files /dev/null and b/src/Controls/tests/TestCases.Android.Tests/snapshots/android/SwipeViewShouldNotClose.png differ diff --git a/src/Controls/tests/TestCases.HostApp/Issues/Issue29086.xaml.cs b/src/Controls/tests/TestCases.HostApp/Issues/Issue29086.xaml.cs index fa897e0a3fcd..09a2de25b4eb 100644 --- a/src/Controls/tests/TestCases.HostApp/Issues/Issue29086.xaml.cs +++ b/src/Controls/tests/TestCases.HostApp/Issues/Issue29086.xaml.cs @@ -3,7 +3,7 @@ namespace Maui.Controls.Sample.Issues; -[Issue(IssueTracker.Github, 29086, "SwipeView Closes when Content Changes even with SwipeBehaviorOnInvoked='RemainOpen'", PlatformAffected.iOS)] +[Issue(IssueTracker.Github, 29086, "SwipeView Closes when Content Changes even with SwipeBehaviorOnInvoked is set to RemainOpen", PlatformAffected.iOS)] public partial class Issue29086 : ContentPage { public ObservableCollection Numbers { get; set; } diff --git a/src/Controls/tests/TestCases.Mac.Tests/snapshots/mac/ItemImageSourceShouldBeVisible.png b/src/Controls/tests/TestCases.Mac.Tests/snapshots/mac/ItemImageSourceShouldBeVisible.png index d8b0b71e9821..99e6ba4c430e 100644 Binary files a/src/Controls/tests/TestCases.Mac.Tests/snapshots/mac/ItemImageSourceShouldBeVisible.png and b/src/Controls/tests/TestCases.Mac.Tests/snapshots/mac/ItemImageSourceShouldBeVisible.png differ diff --git a/src/Controls/tests/TestCases.Mac.Tests/snapshots/mac/SwipeViewShouldNotClose.png b/src/Controls/tests/TestCases.Mac.Tests/snapshots/mac/SwipeViewShouldNotClose.png new file mode 100644 index 000000000000..622a473fee30 Binary files /dev/null and b/src/Controls/tests/TestCases.Mac.Tests/snapshots/mac/SwipeViewShouldNotClose.png differ diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue29086.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue29086.cs index d64cc9f1974a..03ca67ca90c5 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue29086.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue29086.cs @@ -1,4 +1,5 @@ -using NUnit.Framework; +#if TEST_FAILS_ON_WINDOWS //The AutomationId for SwipeView items does not function as expected on the Windows platform. Additionally, programmatic swiping is currently not working. For reference: https://github.com/dotnet/maui/issues/14777. +using NUnit.Framework; using UITest.Appium; using UITest.Core; @@ -11,7 +12,7 @@ public Issue29086(TestDevice testDevice) : base(testDevice) { } - public override string Issue => "SwipeView Closes when Content Changes even with SwipeBehaviorOnInvoked='RemainOpen'"; + public override string Issue => "SwipeView Closes when Content Changes even with SwipeBehaviorOnInvoked is set to RemainOpen"; [Test] [Category(UITestCategories.SwipeView)] @@ -19,8 +20,11 @@ public void SwipeViewShouldNotClose() { App.WaitForElement("SwipeItem"); App.SwipeLeftToRight("SwipeItem"); + App.WaitForElement("AddButton"); App.Click("AddButton"); + App.WaitForElement("AddButton"); App.Click("AddButton"); VerifyScreenshot(); } -} \ No newline at end of file +} +#endif \ No newline at end of file