Skip to content

Commit

Permalink
chore : adding coverage to TimeoutError tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danphenderson committed Feb 14, 2024
1 parent e42b30a commit 56993d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/async/test_click.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

import asyncio
import builtins
from typing import Optional

import pytest
Expand Down Expand Up @@ -638,6 +639,9 @@ async def test_timeout_waiting_for_hit_target(page: Page, server: Server) -> Non
assert "Timeout 5000ms exceeded." in error.message
assert '<div id="blocker"></div> intercepts pointer events' in error.message
assert "retrying click action" in error.message
assert isinstance(error, Error)
assert isinstance(error, TimeoutError)
assert isinstance(error, builtins.TimeoutError)


async def test_fail_when_obscured_and_not_waiting_for_hit_target(
Expand Down

0 comments on commit 56993d2

Please sign in to comment.