diff --git a/tests/playwright/shiny/components/chat/append_user_msg/test_chat_append_user_msg.py b/tests/playwright/shiny/components/chat/append_user_msg/test_chat_append_user_msg.py index c42c5a214..87debcd3b 100644 --- a/tests/playwright/shiny/components/chat/append_user_msg/test_chat_append_user_msg.py +++ b/tests/playwright/shiny/components/chat/append_user_msg/test_chat_append_user_msg.py @@ -1,9 +1,11 @@ from playwright.sync_api import Page, expect +from utils.deploy_utils import skip_on_webkit from shiny.playwright import controller from shiny.run import ShinyAppProc +@skip_on_webkit def test_validate_chat_append_user_message(page: Page, local_app: ShinyAppProc) -> None: page.goto(local_app.url) diff --git a/tests/playwright/shiny/components/chat/basic/test_chat_basic.py b/tests/playwright/shiny/components/chat/basic/test_chat_basic.py index 82e1bcf42..12b212320 100644 --- a/tests/playwright/shiny/components/chat/basic/test_chat_basic.py +++ b/tests/playwright/shiny/components/chat/basic/test_chat_basic.py @@ -1,9 +1,11 @@ from playwright.sync_api import Page, expect +from utils.deploy_utils import skip_on_webkit from shiny.playwright import controller from shiny.run import ShinyAppProc +@skip_on_webkit def test_validate_chat_basic(page: Page, local_app: ShinyAppProc) -> None: page.goto(local_app.url) diff --git a/tests/playwright/shiny/components/chat/errors/test_chat_errors.py b/tests/playwright/shiny/components/chat/errors/test_chat_errors.py index c38bbd5c4..e238c5b4b 100644 --- a/tests/playwright/shiny/components/chat/errors/test_chat_errors.py +++ b/tests/playwright/shiny/components/chat/errors/test_chat_errors.py @@ -1,9 +1,11 @@ from playwright.sync_api import Page, expect +from utils.deploy_utils import skip_on_webkit from shiny.playwright import controller from shiny.run import ShinyAppProc +@skip_on_webkit def test_validate_chat_basic_error(page: Page, local_app: ShinyAppProc) -> None: page.goto(local_app.url) diff --git a/tests/playwright/shiny/components/chat/stream/test_chat_stream.py b/tests/playwright/shiny/components/chat/stream/test_chat_stream.py index 04889b7ce..4c69e3e4d 100644 --- a/tests/playwright/shiny/components/chat/stream/test_chat_stream.py +++ b/tests/playwright/shiny/components/chat/stream/test_chat_stream.py @@ -1,11 +1,13 @@ import re from playwright.sync_api import Page, expect +from utils.deploy_utils import skip_on_webkit from shiny.playwright import controller from shiny.run import ShinyAppProc +@skip_on_webkit def test_validate_chat(page: Page, local_app: ShinyAppProc) -> None: page.goto(local_app.url) diff --git a/tests/playwright/shiny/components/chat/transform/test_chat_transform.py b/tests/playwright/shiny/components/chat/transform/test_chat_transform.py index 4b06be4e9..7209407f8 100644 --- a/tests/playwright/shiny/components/chat/transform/test_chat_transform.py +++ b/tests/playwright/shiny/components/chat/transform/test_chat_transform.py @@ -1,9 +1,11 @@ from playwright.sync_api import Page, expect +from utils.deploy_utils import skip_on_webkit from shiny.playwright import controller from shiny.run import ShinyAppProc +@skip_on_webkit def test_validate_chat_transform(page: Page, local_app: ShinyAppProc) -> None: page.goto(local_app.url) diff --git a/tests/playwright/shiny/components/chat/transform_assistant/test_chat_transform_assistant.py b/tests/playwright/shiny/components/chat/transform_assistant/test_chat_transform_assistant.py index 7246a08e3..d38f35807 100644 --- a/tests/playwright/shiny/components/chat/transform_assistant/test_chat_transform_assistant.py +++ b/tests/playwright/shiny/components/chat/transform_assistant/test_chat_transform_assistant.py @@ -1,10 +1,12 @@ from playwright.sync_api import Page, expect +from utils.deploy_utils import skip_on_webkit from shiny import ui from shiny.playwright import controller from shiny.run import ShinyAppProc +@skip_on_webkit def test_validate_chat_transform_assistant(page: Page, local_app: ShinyAppProc) -> None: page.goto(local_app.url) diff --git a/tests/playwright/utils/deploy_utils.py b/tests/playwright/utils/deploy_utils.py index 38f40b1a3..95f7798ee 100644 --- a/tests/playwright/utils/deploy_utils.py +++ b/tests/playwright/utils/deploy_utils.py @@ -52,6 +52,12 @@ def skip_if_not_chrome(fn: CallableT) -> CallableT: return fn +def skip_on_webkit(fn: CallableT) -> CallableT: + fn = pytest.mark.skip_browser("webkit")(fn) + + return fn + + def run_command(cmd: str) -> str: output = subprocess.run( cmd,