Skip to content

Commit

Permalink
Add non existing server test
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello committed Mar 26, 2021
1 parent b1f49c8 commit 7644b75
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions e2e/tests/assorted/11-deeplinking.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,17 @@ describe('Deep linking', () => {
});
await waitFor(element(by.id(`room-view-title-${ data.groups.private.name }`))).toExist().withTimeout(10000);
});

it('should add a not existing server and fallback to the previous one', async() => {
await device.launchApp({
permissions: { notifications: 'YES' },
newInstance: true,
url: getDeepLink(DEEPLINK_METHODS.ROOM, 'https://google.com'),
sourceApp: 'com.apple.mobilesafari'
});
await waitFor(element(by.id('rooms-list-view'))).toBeVisible().withTimeout(10000);
await checkServer(data.server);
});
});
});
});

0 comments on commit 7644b75

Please sign in to comment.