Skip to content

Commit f2c051d

Browse files
committed
Ease thresholds in integrative scrolling tests
1 parent 7f5dccf commit f2c051d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

detox/test/e2e/03.integ-actions.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe(':android: Integrative actions', () => {
2727
it('should scroll various distances accurately, and tap scroll targets', async () => {
2828
const iterations = 10;
2929
const textHeightDP = 40;
30-
const baseMarginDP = 20;
30+
const baseMarginDP = 10;
3131

3232
await element(by.text('Integrative Actions')).tap();
3333
for (let i = 1; i <= iterations; i++) {
@@ -45,7 +45,7 @@ describe(':android: Integrative actions', () => {
4545
it('should scroll various distances accurately, and type text into text fields', async () => {
4646
const iterations = 10;
4747
const inputHeightDP = 40;
48-
const baseMarginDP = 20;
48+
const baseMarginDP = 10;
4949

5050
await element(by.text('Integrative Actions')).tap();
5151

detox/test/src/Screens/IntegActionsScreen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class IntegActionsScreen extends Component {
5454

5555
renderAllTappableTexts(length) {
5656
return Array.from({length}, (_, index) => {
57-
const marginBottom = 20 * (index + 1);
57+
const marginBottom = 10 * (index + 1);
5858
return this.renderTappableText(index + 1, marginBottom)
5959
})
6060
}
@@ -71,7 +71,7 @@ export default class IntegActionsScreen extends Component {
7171

7272
renderAllTextInputs(length) {
7373
return Array.from({length}, (_, index) => {
74-
const marginBottom = 20 * (index + 1);
74+
const marginBottom = 10 * (index + 1);
7575
return this.renderTextInput(index + 1, marginBottom)
7676
})
7777
}

0 commit comments

Comments
 (0)