Skip to content

Commit

Permalink
Ignore visual tests on iPhone 15 devices (#18407)
Browse files Browse the repository at this point in the history
  • Loading branch information
BretJohnson authored and rmarinho committed Oct 28, 2023
1 parent 4d6eb6a commit c13607b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Controls/tests/UITests/Tests/UITestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c13607b

Please sign in to comment.