Skip to content

Commit 793f2e8

Browse files
NafeelaNazhirPureWeen
authored andcommitted
crop the images (#31723)
1 parent bc88973 commit 793f2e8

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed
-4.87 KB
Loading
-7.54 KB
Loading
-10.4 KB
Loading

src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/StackLayoutFeatureTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,11 @@ public void HorizontalStackLayout_Spacing_WithLandscape()
411411
App.WaitForElement("Apply");
412412
App.Tap("Apply");
413413

414+
#if ANDROID
415+
VerifyScreenshot(cropLeft: 125);
416+
#else
414417
VerifyScreenshot();
418+
#endif
415419
}
416420

417421
[Test]
@@ -432,7 +436,11 @@ public void VerticalStackLayout_Spacing_WithLandscape()
432436
App.WaitForElement("Apply");
433437
App.Tap("Apply");
434438

439+
#if ANDROID
440+
VerifyScreenshot(cropLeft: 125);
441+
#else
435442
VerifyScreenshot();
443+
#endif
436444
}
437445
#endif
438446
}

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue22306.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ public void ButtonsLayoutResolveWhenParentSizeChanges()
3232
App.SetOrientationLandscape();
3333

3434
WaitForAllElements();
35+
#if ANDROID
36+
VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "SizeButtonsDownLandscape", cropLeft: 125);
37+
#else
3538
VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "SizeButtonsDownLandscape");
39+
#endif
40+
3641
changeBoundsButton.Click();
3742
WaitForAllElements();
3843

0 commit comments

Comments
 (0)