integration-tests: dynamic port handling for web app URL verification (#5176)

This commit is contained in:
Kamil Kisiela 2024-07-08 10:11:53 +02:00 committed by GitHub
parent 307f97ac00
commit 8f544c5d09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,8 +8,8 @@ export function normalizeCliOutput(value: string) {
// eslint-disable-next-line no-control-regex
.replace(/\x1B[[(?);]{0,2}(;?\d)*./g, '')
.replace(
/http:\/\/localhost:8080\/[$]*\w+\/[$]*\w+\/[$]*\w+/i,
'http://localhost:8080/$organization/$project/$target',
/(http:\/\/localhost:\d+)\/([^\/]+)\/([^\/]+)\/([^\/]+)/,
'$1/$organization/$project/$target',
)
.replace(/history\/[$]*\w+-\w+-\w+-\w+-\w+/i, 'history/$version')
.trim(),