Skip to content

Commit 7722450

Browse files
committed
Press harder on enabling on-screen kbd
1 parent 930a7b6 commit 7722450

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

e2e/Keyboard.test.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { default as TestIDs, default as testIDs } from '../playground/src/testID
22
import { device } from 'detox';
33
import Utils from './Utils';
44

5-
const { elementByLabel, elementById } = Utils;
5+
const { elementByLabel, elementById, sleep } = Utils;
66

77
const KBD_OBSCURED_TEXT = 'Keyboard Demo';
88

@@ -34,7 +34,11 @@ const androidDriver = {
3434
// Not initialized
3535
return;
3636
}
37-
await this.adb.shell(this.adbName, 'settings put Secure show_ime_with_hard_keyboard 1');
37+
38+
for (let i = 0; i < 3; i++) {
39+
await this.adb.shell(this.adbName, 'settings put Secure show_ime_with_hard_keyboard 1');
40+
await sleep(500);
41+
}
3842
},
3943

4044
async restoreOnScreenKeyboard() {
@@ -43,6 +47,7 @@ const androidDriver = {
4347
return;
4448
}
4549
await this.adb.shell(this.adbName, `settings put Secure show_ime_with_hard_keyboard ${this.kbdEnabled}`);
50+
await sleep(1000);
4651
},
4752
}
4853

0 commit comments

Comments
 (0)