Thanks for fixing baseUrl in 0.17.0. Now it works fine with ignoreSynchronization = true.
It works fine for URLs like http://domain but does not work for http://domain/resource_path. The resource path is being ignored.
My AUT lies under http://domain_name/demo which is static for all tests.
Would it be possible to support extended paths?
The baseUrl uses node's url module and it's resolve function. Check out the docs here: http://nodejs.org/api/url.html#url_url_resolve_from_to
You probably want an extra / at the end of your baseUrl.
Please open a new issue if that does not solve your problem.
Thank you for the tip with url.resolve() it works fine now.
As one of my urls is http://localhost/demo/#/static, I have got:
baseUrl: 'http://localhost/demo/',ptor.get('#/static'); for subpageptor.get(''); for 'http://localhost/demo/',`I was using ptor.get('/#/static'); with slash at very beginning, which truncated demo/ part
Why we can't put the '#' in baseUrl? Like this:
baseUrl: 'http://localhost/#'
Url in spec: '/login'
For example.
Because if I do that it doesn't work, but if i put the hashtag in url in spec and not in baseUrl it works, why is that?
Most helpful comment
Why we can't put the '#' in baseUrl? Like this:
baseUrl: 'http://localhost/#'
Url in spec: '/login'
For example.
Because if I do that it doesn't work, but if i put the hashtag in url in spec and not in baseUrl it works, why is that?