diff --git a/src/SamplesApp/SamplesApp.UITests/Microsoft_UI_Xaml_Controls/ExpanderTests/Expander_Tests.cs b/src/SamplesApp/SamplesApp.UITests/Microsoft_UI_Xaml_Controls/ExpanderTests/Expander_Tests.cs index 6c5b6d5690dd..bfb883558ecc 100644 --- a/src/SamplesApp/SamplesApp.UITests/Microsoft_UI_Xaml_Controls/ExpanderTests/Expander_Tests.cs +++ b/src/SamplesApp/SamplesApp.UITests/Microsoft_UI_Xaml_Controls/ExpanderTests/Expander_Tests.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Drawing; using NUnit.Framework; using SamplesApp.UITests.TestFramework; using Uno.UITest.Helpers; @@ -16,7 +11,8 @@ public partial class Expander_Tests : SampleControlUITestBase [AutoRetry] public void ToggleCollapsedStateToVerifyClipping() { - Run("SamplesApp.Samples.Microsoft_UI_Xaml_Controls.ExpanderTests.ExpanderColorValidationPage", skipInitialScreenshot: true); + Run("UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.ExpanderColorValidationPage"); + var expanderResult = _app.WaitForElement("ExpanderWithColor"); var expander = _app.Marked("ExpanderWithColor"); var expanderAppRect = ToPhysicalRect(expanderResult[0].Rect); diff --git a/src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/ExpanderTests/ExpanderColorValidationPage.xaml b/src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/ExpanderTests/ExpanderColorValidationPage.xaml index 13a6b68eb386..44ca468109f2 100644 --- a/src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/ExpanderTests/ExpanderColorValidationPage.xaml +++ b/src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/ExpanderTests/ExpanderColorValidationPage.xaml @@ -1,6 +1,7 @@ -Content - + diff --git a/src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/ExpanderTests/ExpanderColorValidationPage.xaml.cs b/src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/ExpanderTests/ExpanderColorValidationPage.xaml.cs index 06c6377e2da0..39595b086b52 100644 --- a/src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/ExpanderTests/ExpanderColorValidationPage.xaml.cs +++ b/src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/ExpanderTests/ExpanderColorValidationPage.xaml.cs @@ -1,10 +1,10 @@ -using Uno.UI.Samples.Controls; -using Windows.UI.Xaml.Controls; +using MUXControlsTestApp.Utilities; +using Uno.UI.Samples.Controls; -namespace UITests.Microsoft_UI_Xaml_Controls.ExpanderTests +namespace UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests { - [SampleControlInfo("Expander", "WinUI", Name = "ExpanderClippingSample")] - public sealed partial class ExpanderColorValidationPage : UserControl + [SampleControlInfo("Expander", "WinUI")] + public sealed partial class ExpanderColorValidationPage : MUXTestPage { public ExpanderColorValidationPage() {