From c13607b5bf0d4f2abb5492f22e62bf98bf83fe47 Mon Sep 17 00:00:00 2001 From: Bret Johnson Date: Fri, 27 Oct 2023 13:05:24 -0400 Subject: [PATCH] Ignore visual tests on iPhone 15 devices (#18407) --- src/Controls/tests/UITests/Tests/UITestBase.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Controls/tests/UITests/Tests/UITestBase.cs b/src/Controls/tests/UITests/Tests/UITestBase.cs index e7721d15f925..0789cc9e1904 100644 --- a/src/Controls/tests/UITests/Tests/UITestBase.cs +++ b/src/Controls/tests/UITests/Tests/UITestBase.cs @@ -170,6 +170,13 @@ public void VerifyScreenshot(string? name = null) Assert.Ignore("MacCatalyst isn't supported yet for visual tests"); } + if (_testDevice == TestDevice.iOS && GetTestConfig().DeviceName == "iPhone 15") + { + // For now, ignore visual tests on iPhone 15 devices, only running visual tests with iPhone X. + // Later, when we have a way to screenshot just the control being tested that should remove this dependency. + Assert.Ignore("iPhone15 isn't currently used for visual tests, just iPhone X"); + } + if (name == null) name = TestContext.CurrentContext.Test.MethodName ?? TestContext.CurrentContext.Test.Name;