Skip to content

Commit 670edff

Browse files
authored
test: unflake test_timeout_waiting_for_stable_position test (#671)
1 parent 4c201bb commit 670edff

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/async/test_click.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -527,12 +527,10 @@ async def test_timeout_waiting_for_stable_position(page, server):
527527
}"""
528528
)
529529

530-
error = None
531-
try:
532-
await button.click(timeout=5000)
533-
except Error as e:
534-
error = e
535-
assert "Timeout 5000ms exceeded." in error.message
530+
with pytest.raises(Error) as exc_info:
531+
await button.click(timeout=3000)
532+
error = exc_info.value
533+
assert "Timeout 3000ms exceeded." in error.message
536534
assert "waiting for element to be visible, enabled and stable" in error.message
537535
assert "element is not stable - waiting" in error.message
538536

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy