Workaround for Android tapBack
This commit is contained in:
parent
1e850b2840
commit
7e56950437
|
@ -137,9 +137,9 @@ async function dismissReviewNag() {
|
|||
}
|
||||
|
||||
async function tapBack() {
|
||||
if (device.getPlatform() === 'ios') {
|
||||
try {
|
||||
await element(by.id('header-back')).atIndex(0).tap();
|
||||
} else {
|
||||
} catch (error) {
|
||||
await device.pressBack();
|
||||
}
|
||||
await sleep(300); // Wait for animation to finish
|
||||
|
|
|
@ -286,7 +286,6 @@ describe('Room screen', () => {
|
|||
it('should draft message', async () => {
|
||||
const draftMessage = 'draft';
|
||||
await element(by.id('messagebox-input')).replaceText(draftMessage);
|
||||
await device.pressBack(); // close keyboard
|
||||
await tapBack();
|
||||
|
||||
await navigateToRoom(room);
|
||||
|
|
Loading…
Reference in New Issue