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);