Currently, HashLocationStrategy is enabled in my Angular App, and when I run
expect(browser.getCurrentUrl()).toBe(browser.baseUrl + '/login');
in my e2e spec, I receive following error:
- Expected 'http://localhost:49152/#/login' to be 'http://localhost:49152/login'.
Is there a way to tell Protractor to use hash suffix in baseUrl
globally?
You can define baseUrl in your config file Or pass parameter from command line or Jenkins so that it would be available to all specs.
And can check expectation,
Or if you pass parameter from command line,