I'm having very strange recurring issues connecting to a locally served vuejs application (nodejs). localhost:8080 successfully loads in a local browser, but regardless of configuration testcafe returns: Failed to find a DNS-record for the resource at "http://localhost:3000/".
I emptied .testcaferc.json and created the following Minimum Working Example:
testcafe "chrome" tests/testcafe_debug.test.js --app "npm run serve" --app-init-delay 1 -S -s
tests/testcafe_debug.test.js:
fixture `Fixture`
.page('http://localhost:8080/login');
test('test', async t => {
await t
.click('body')
.expect(Selector('div p a').text).eql('Register Here');
});
This is actually the second time I've seen the problem. Visiting a friend an on a new network, connections failed until I added --proxyBypass localhost to the test run. This fixed the issue for the moment, but now I'm having the same errors a few weeks later.
Things I've looked into:
--hostname localhosthas no effect- There's nothing strange in /etc/hosts.
- No change if I turn off my wifi connection or adjust the proxy settings I'm not running a firewall or vpn. I'm not sure where else to look. Any suggestions or advice would be profoundly appreciated.