FTR - Adjust check for successful navigation (#166605)

## Summary

This PR adjusts the FTR check for successful navigation to also take
ports on the `appUrl` into account when comparing to `currentUrl` that
already had the ports removed for the comparison.
This commit is contained in:
Robert Oskamp 2023-09-18 14:55:56 +02:00 committed by GitHub
parent 6561cd2e0c
commit 555dd7e75e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -299,7 +299,7 @@ export class CommonPageObject extends FtrService {
const navSuccessful = currentUrl
.replace(':80/', '/')
.replace(':443/', '/')
.startsWith(appUrl);
.startsWith(appUrl.replace(':80/', '/').replace(':443/', '/'));
if (!navSuccessful) {
const msg = `App failed to load: ${appName} in ${this.defaultFindTimeout}ms appUrl=${appUrl} currentUrl=${currentUrl}`;