From 7644b7587a54ae1ca39fbe9cb7994116196fee39 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 26 Mar 2021 18:16:04 -0300 Subject: [PATCH] Add non existing server test --- e2e/tests/assorted/11-deeplinking.spec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/e2e/tests/assorted/11-deeplinking.spec.js b/e2e/tests/assorted/11-deeplinking.spec.js index 9e4cce44af..cdde0323a8 100644 --- a/e2e/tests/assorted/11-deeplinking.spec.js +++ b/e2e/tests/assorted/11-deeplinking.spec.js @@ -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); + }); }); }); });