diff --git a/utils/test-deployment/run_tests.py b/utils/test-deployment/run_tests.py index 24ca7a745..2d32d182f 100755 --- a/utils/test-deployment/run_tests.py +++ b/utils/test-deployment/run_tests.py @@ -26,8 +26,9 @@ if not SPECKLE_SERVER.startswith('http://') and not SPECKLE_SERVER.startswith('h print(f"Using Speckle server '{SPECKLE_SERVER}'") # Test if frontend is accessible -frontend_response = requests.get(urllib.parse.urljoin(SPECKLE_SERVER, 'img/logo.ddce2456.svg')) -assert frontend_response.status_code == 200, "Frontend request doesn't return status code 200" +frontend_response = requests.get(urllib.parse.urljoin(SPECKLE_SERVER, 'logo.svg')) +# don't check for status code, the frontend app will server the 404 page with a status code 200 +# even if the rote doesn't exist assert frontend_response.headers.get('Content-Type', '').startswith('image/'), 'Frontend logo Content-Type is not an image' print("Frontend accessible")