Skip to content

Commit 68edee6

Browse files
committed
skip safe exception tests for output errors
1 parent 35ebec9 commit 68edee6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tests/playwright/examples/example_apps.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,13 @@ def on_console_msg(msg: ConsoleMessage) -> None:
255255
)
256256

257257
# check for shiny output errors
258-
expect(page.locator(".shiny-busy")).to_have_count(0, timeout=SHINY_INIT_TIMEOUT)
259-
error_locator = page.locator(".shiny-output-error")
260-
expect(error_locator).to_have_count(0, timeout=ERROR_ELEMENT_TIMEOUT)
258+
# Skip output error checks for SafeException example apps
259+
if ex_app_path not in [
260+
"shiny/api-examples/SafeException/app-express.py",
261+
"shiny/api-examples/SafeException/app-core.py",
262+
]:
263+
expect(page.locator(".shiny-busy")).to_have_count(
264+
0, timeout=SHINY_INIT_TIMEOUT
265+
)
266+
error_locator = page.locator(".shiny-output-error")
267+
expect(error_locator).to_have_count(0, timeout=ERROR_ELEMENT_TIMEOUT)

0 commit comments

Comments
 (0)