Skip to content

Commit 668222f

Browse files
committed
tests: Client error console language changed
1 parent 06315dd commit 668222f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/playwright/deploys/shiny-client-console-error/test_shiny_client_error.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import re
2+
13
import pytest
24
from playwright.sync_api import Page, expect
35
from utils.deploy_utils import (
@@ -23,7 +25,7 @@ def test_shiny_client_console_error(page: Page, app_url: str) -> None:
2325

2426
expect(shiny_error_message).not_to_have_count(0)
2527
expect(shiny_error_message).to_have_attribute(
26-
"message", 'The following ID was repeated:\n- "same_id": 2 inputs'
28+
"message", re.compile(r'"same_id": 2 inputs')
2729
)
2830
expect(page.get_by_role("button", name="Dismiss all")).to_have_count(1)
2931
expect(

0 commit comments

Comments
 (0)