From 0a6ee30480dcd962c26ef6993ce8466fd3e757c7 Mon Sep 17 00:00:00 2001 From: Vinyzu <50874994+Vinyzu@users.noreply.github.com> Date: Sun, 7 Apr 2024 20:22:02 +0200 Subject: [PATCH] Workflow Fixes --- .github/workflows/ci.yml | 8 +++++--- cdp_patches/input/async_input.py | 2 +- cdp_patches/input/sync_input.py | 2 +- tests/test_async_selenium.py | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) 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