@@ -98,6 +98,13 @@ def get_apps(path: str) -> typing.List[str]:
9898 "examples/brownian" : ["Failed to acquire camera feed:" ],
9999}
100100
101+ # Check for Shiny output errors, except for known exception cases
102+ app_allow_output_error = [
103+ "shiny/api-examples/SafeException/app-express.py" ,
104+ "shiny/api-examples/SafeException/app-core.py" ,
105+ "examples/global_pyplot/app.py" ,
106+ ]
107+
101108
102109# Altered from `shinytest2:::app_wait_for_idle()`
103110# https://github.com/rstudio/shinytest2/blob/b8fdce681597e9610fc078aa6e376134c404f3bd/R/app-driver-wait.R
@@ -254,17 +261,7 @@ def on_console_msg(msg: ConsoleMessage) -> None:
254261 + "* " .join (console_errors )
255262 )
256263
257- # Check for Shiny output errors, except for known exception cases
258- excluded_apps = [
259- "shiny/api-examples/SafeException/app-express.py" ,
260- "shiny/api-examples/SafeException/app-core.py" ,
261- "examples/global_pyplot/app.py" ,
262- ]
263- if ex_app_path not in excluded_apps :
264- # Ensure the application is not busy
265- expect (page .locator (".shiny-busy" )).to_have_count (
266- 0 , timeout = SHINY_INIT_TIMEOUT
267- )
264+ if ex_app_path not in app_allow_output_error :
268265 # Ensure there are no output errors present
269266 error_locator = page .locator (".shiny-output-error" )
270267 expect (error_locator ).to_have_count (0 , timeout = ERROR_ELEMENT_TIMEOUT )
0 commit comments