If running against a proxy with port 8000, navigation broke - this PR attempts to fix it . (#28973) (#29031)

* modified to test against a proxy set up -else the navigation will break.
This commit is contained in:
Rashmi Kulkarni 2019-01-18 20:09:45 -08:00 committed by GitHub
parent 95986f1630
commit c4b102640c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,7 +148,7 @@ export function CommonPageProvider({ getService, getPageObjects }) {
// Browsers don't show the ':port' if it's 80 or 443 so we have to
// remove that part so we can get a match in the tests.
const navSuccessful = new RegExp(appUrl.replace(':80', '').replace(':443', '')
const navSuccessful = new RegExp(appUrl.replace(':80/', '/').replace(':443/', '/')
+ '.{0,' + maxAdditionalLengthOnNavUrl + '}$')
.test(currentUrl);