diff --git a/detox/test/e2e/26.element-screenshots.test.js b/detox/test/e2e/26.element-screenshots.test.js index b64257dc36..d801654aa0 100644 --- a/detox/test/e2e/26.element-screenshots.test.js +++ b/detox/test/e2e/26.element-screenshots.test.js @@ -1,5 +1,4 @@ const fs = require('fs'); -const { expectToThrow } = require('./utils/custom-expects'); describe('Element screenshots', () => { diff --git a/detox/test/e2e/assets/elementScreenshot.android.horiz.png b/detox/test/e2e/assets/elementScreenshot.android.horiz.png index c7584aaee7..440bc02f1a 100644 Binary files a/detox/test/e2e/assets/elementScreenshot.android.horiz.png and b/detox/test/e2e/assets/elementScreenshot.android.horiz.png differ diff --git a/detox/test/e2e/assets/elementScreenshot.android.vert.png b/detox/test/e2e/assets/elementScreenshot.android.vert.png index e457689838..85eba1ea95 100644 Binary files a/detox/test/e2e/assets/elementScreenshot.android.vert.png and b/detox/test/e2e/assets/elementScreenshot.android.vert.png differ diff --git a/detox/test/src/Screens/ElementScreenshotScreen.js b/detox/test/src/Screens/ElementScreenshotScreen.js index 42203b7846..2833eb6bb8 100644 --- a/detox/test/src/Screens/ElementScreenshotScreen.js +++ b/detox/test/src/Screens/ElementScreenshotScreen.js @@ -31,10 +31,10 @@ export default class ElementScreenshotScreen extends Component { static orientations = { 'vertical': { borderSizeH: 12, - borderSizeV: screenHeight * 1.5 / 8, + borderSizeV: screenHeight * 0.9 / 8, }, 'horizontal': { - borderSizeH: screenWidth * 1.5 / 8, + borderSizeH: screenWidth * 0.9 / 8, borderSizeV: 12, } }; @@ -56,10 +56,6 @@ export default class ElementScreenshotScreen extends Component { - - - - ); }