[ui][test][views] Refactor the test to avoid hard coded URL

1 job for 558_improve_ui_email_tests in 15 minutes and 31 seconds (queued for 5 seconds)