Skip to content

[Testing] Added Left/Right Cropping Support for Screenshot Verification in UI Tests#31715

Merged
PureWeen merged 2 commits into
dotnet:mainfrom
NafeelaNazhir:landscape_fix
Sep 22, 2025
Merged

[Testing] Added Left/Right Cropping Support for Screenshot Verification in UI Tests#31715
PureWeen merged 2 commits into
dotnet:mainfrom
NafeelaNazhir:landscape_fix

Update src/Controls/tests/TestCases.Shared.Tests/UITest.cs

91ac18e
Select commit
Loading
Failed to load commit list.
Azure Pipelines / MAUI-UITests-public succeeded Sep 22, 2025 in 14m 52s

Build #9.0.120-ci+pr.31715.azdo.150988 had test failures

Details

Tests

  • Failed: 1 (0.01%)
  • Passed: 7,624 (98.41%)
  • Other: 122 (1.57%)
  • Total: 7,747

Annotations

Check failure on line 511 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-UITests-public

Build log #L511

PowerShell exited with code '1'.

Check failure on line 511 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-UITests-public

Build log #L511

PowerShell exited with code '1'.

Check failure on line 943 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-UITests-public

Build log #L943

PowerShell exited with code '1'.

Check failure on line 955 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-UITests-public

Build log #L955

PowerShell exited with code '1'.

Check failure on line 1 in Microsoft.Maui.TestCases.Tests.Issues.Issue22306(Android).ButtonsLayoutResolveWhenParentSizeChanges

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-UITests-public

Microsoft.Maui.TestCases.Tests.Issues.Issue22306(Android).ButtonsLayoutResolveWhenParentSizeChanges

VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: ButtonsLayoutResolveWhenParentSizeChangesSizeButtonsDownLandscape.png (0.70% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
Raw output
   at VisualTestUtils.VisualRegressionTester.Fail(String message)
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext)
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|8_0(String name, <>c__DisplayClass8_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 354
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 205
   at Microsoft.Maui.TestCases.Tests.Issues.Issue22306.ButtonsLayoutResolveWhenParentSizeChanges() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue22306.cs:line 35
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)