Closed liweijian closed 3 years ago
What you are observing is exactly correct. If you look into com.facebook.testing.screenshot.internal.ScreenshotImpl, you will notice parameter called like so:
private int mTileSize = 512;
This is what makes all these slices happen. You can reconfigure the whole thing to be bigger but no need. If you want to see complete image of your screen capture, you need to either use recording task or verification task. Former will essentially create complete images of what you see. Latter one will try to compare with baseline, producing expected, actual, *diff images if issues exist.
I'm trying to use Screenshot within Espresso using this demo: https://github.com/cortinico/kotlin-android-template
It should look like this if all goes well:
And:
The espresso case that I modified:
With the
MyTestRunner.java
:However, I got these weird size files:
Like, before_click_1_0.png:
And after_click_1_0.png:
It seems that we only capture partial of the screenshot, I was wondering if maybe anything that I had missed?