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

* modified to test against a proxy set up -else the navigation will break.
This commit is contained in:
Rashmi Kulkarni 2019-01-18 14:46:15 -08:00 committed by GitHub
parent 5d296c5d80
commit c8c9313c31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,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);