diff --git a/tests/playwright/utils/deploy_utils.py b/tests/playwright/utils/deploy_utils.py index a5bed5d82..70cfea82a 100644 --- a/tests/playwright/utils/deploy_utils.py +++ b/tests/playwright/utils/deploy_utils.py @@ -194,6 +194,16 @@ def fix_fn(request: pytest.FixtureRequest): # Return the `url` yield next(shinyapp_proc_gen).url elif deploy_location in deploy_locations: + + if deploy_location == "connect" and not (server_url and api_key): + pytest.skip("Connect server url or api key not found. Cannot deploy.") + if deploy_location == "shinyapps" and not ( + shinyappsio_name and shinyappsio_token and shinyappsio_secret + ): + pytest.skip( + "Shinyapps.io name, token or secret not found. Cannot deploy." + ) + app_url = deploy_app( app_file, deploy_location,