diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16e07ff..954bf8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,10 +49,12 @@ jobs: uses: browser-actions/setup-chrome@v1 - name: Install Chromium Driver run: python -m playwright install chromium +# - name: Test with PyTest +# uses: maufrontier/puppeteer-headful@v3 +# with: +# commands: pytest - name: Test with PyTest - uses: maufrontier/puppeteer-headful@v3 - with: - commands: pytest + run: pytest Build_Windows: strategy: diff --git a/cdp_patches/input/async_input.py b/cdp_patches/input/async_input.py index e9e8abb..d29db2f 100644 --- a/cdp_patches/input/async_input.py +++ b/cdp_patches/input/async_input.py @@ -11,7 +11,7 @@ if sys.version_info.minor >= 10: from typing import TypeAlias else: - TypeAlias = "TypeAlias" + TypeAlias = "TypeAlias" # type: ignore[assignment] from cdp_patches import is_windows diff --git a/cdp_patches/input/sync_input.py b/cdp_patches/input/sync_input.py index a92e4a3..efea968 100644 --- a/cdp_patches/input/sync_input.py +++ b/cdp_patches/input/sync_input.py @@ -8,7 +8,7 @@ if sys.version_info.minor >= 10: from typing import TypeAlias else: - TypeAlias = "TypeAlias" + TypeAlias = "TypeAlias" # type: ignore[assignment] from cdp_patches import is_windows diff --git a/tests/test_async_selenium.py b/tests/test_async_selenium.py index 40639b6..d170365 100644 --- a/tests/test_async_selenium.py +++ b/tests/test_async_selenium.py @@ -42,7 +42,7 @@ async def test_input_leak(async_driver: Chrome, server: Server) -> None: x, y = await get_locator_pos(sync_locator) await async_driver.async_input.click("left", x, y) # type: ignore[attr-defined] - is_leaking = await async_driver.eval_async("return await window.is_leaking") + is_leaking = await async_driver.eval_async("return await window.is_leaking", timeout=10) assert not is_leaking