Skip to content

Commit

Permalink
Fix Android e2e's in light of recent change
Browse files Browse the repository at this point in the history
  • Loading branch information
d4vidi committed May 27, 2021
1 parent 6e2f15e commit 4d0beeb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion detox/test/e2e/26.element-screenshots.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const fs = require('fs');
const { expectToThrow } = require('./utils/custom-expects');

describe('Element screenshots', () => {

Expand Down
Binary file modified detox/test/e2e/assets/elementScreenshot.android.horiz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified detox/test/e2e/assets/elementScreenshot.android.vert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 2 additions & 6 deletions detox/test/src/Screens/ElementScreenshotScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
};
Expand All @@ -56,10 +56,6 @@ export default class ElementScreenshotScreen extends Component {
<TouchableHighlight testID='switchOrientation' onPress={this.switchOrientation}>
<ArtisticRectangle testID='fancyElement' borderSizeH={borderSizeH} borderSizeV={borderSizeV} />
</TouchableHighlight>

<View style={{position: 'absolute', left: -100, top: -100}}>
<ArtisticRectangle testID='offscreenElement' />
</View>
</View>
);
}
Expand Down

0 comments on commit 4d0beeb

Please sign in to comment.