What I want to do is:
expect(browser.getCurrentUrl()).toEqual(protractor.baseUrl + urls.cookiesPage());
This is what I get:
- Expected 'https://somewebsite.com/about/cookies/' to equal 'undefined/about/cookies/'.
How to pass baseUrl from config file into my test so I can assert it?
5 minutes later, I found an answer... after 2 hours of research:
expect(browser.getCurrentUrl()).toEqual(browser.baseUrl + 'some/url/right/here');
So, this was the answer:
browser.baseUrl
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With