javascript - Unusual Zombie root URL with socket.io -


i using zombie visit index route (/), contains socket.io chat application.

my test expecting browser url after request equal http://localhost/.

instead, following url: http://localhost/socket.io/?eio=3&transport=polling&j=0&t=lrvjmq8&b64=1&sid=pj7nbbvpufvfaukxaaac.

when run our application in development environment, works fine. visiting / works expected.

why test redirecting other path?

test code

browser.localhost('localhost', 3000);  describe('user visits root path', function() {   const browser = new browser();    before(function(done) {     browser.visit('/', done)   });    it('should see chat page', function() {     // fails, equals http://localhost/socket.io/?eio=3&transport=polling&j=0&t=lrvjmq8&b64=1&sid=pj7nbbvpufvfaukxaaac instead     browser.assert.url(browser.location.href, 'http://localhost/');   }); }) 


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -