diff --git a/tests/test_asyncio.py b/tests/test_asyncio.py index b904c82..675f889 100644 --- a/tests/test_asyncio.py +++ b/tests/test_asyncio.py @@ -853,7 +853,7 @@ async def test_small_timeout(page): result = testdir.runpytest() result.assert_outcomes(passed=0, failed=1, skipped=0) result.stdout.fnmatch_lines("*AssertionError: Locator expected to be visible*") - result.stdout.fnmatch_lines('*Expect "to_be_visible" with timeout 1111ms*') + result.stdout.fnmatch_lines('*Expect "to_be_visible"*with timeout 1111ms*') def test_artifact_collection_should_work_for_manually_created_contexts_keep_open( diff --git a/tests/test_sync.py b/tests/test_sync.py index 6837d47..9c702a3 100644 --- a/tests/test_sync.py +++ b/tests/test_sync.py @@ -849,7 +849,7 @@ def test_small_timeout(page): result = testdir.runpytest() result.assert_outcomes(passed=0, failed=1, skipped=0) result.stdout.fnmatch_lines("*AssertionError: Locator expected to be visible*") - result.stdout.fnmatch_lines('*Expect "to_be_visible" with timeout 1111ms*') + result.stdout.fnmatch_lines('*Expect "to_be_visible"*with timeout 1111ms*') def test_artifact_collection_should_work_for_manually_created_contexts_keep_open(