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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -