From 330e1d96e0bc5c89d5d3e666ebaa6252cdcbccad Mon Sep 17 00:00:00 2001 From: Ivan Vershigora Date: Fri, 9 Feb 2024 12:58:55 +0000 Subject: [PATCH] fix: e2e webrelay test --- e2e/settings.e2e.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/e2e/settings.e2e.js b/e2e/settings.e2e.js index 5a6fe7169..3a325b6de 100644 --- a/e2e/settings.e2e.js +++ b/e2e/settings.e2e.js @@ -1,5 +1,4 @@ import jestExpect from 'expect'; -import parse from 'url-parse'; import { sleep, @@ -491,7 +490,7 @@ d('Settings', () => { markComplete('settings-electrum'); }); - it.skip('Can connect to different Slashtags Web Relay', async () => { + it('Can connect to different Slashtags Web Relay', async () => { if (checkComplete('settings-webrelay')) { return; } @@ -504,12 +503,8 @@ d('Settings', () => { by.id('ConnectedUrl'), ).getAttributes(); - // add port to url - const url = parse(origRelay, true); - url.set('hostname', url.hostname + ':443'); - const relayUrl = url.toString(); - - await element(by.id('UrlInput')).replaceText(relayUrl); + const stagingRelay = 'https://dht-relay.synonym.to/staging/web-relay'; + await element(by.id('UrlInput')).replaceText(stagingRelay); await element(by.id('Status')).tap(); // close keyboard await element(by.id('ConnectToUrl')).tap(); await sleep(1000); @@ -519,7 +514,7 @@ d('Settings', () => { by.id('ConnectedUrl'), ).getAttributes(); - jestExpect(newRelay).toBe(relayUrl); + jestExpect(newRelay).toBe(stagingRelay); // now change it back await element(by.id('UrlInput')).replaceText(origRelay);