Skip to content

Commit

Permalink
Workflow Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinyzu committed Apr 7, 2024
1 parent 8f4a6c2 commit 0a6ee30
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion cdp_patches/input/async_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion cdp_patches/input/sync_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/test_async_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 0a6ee30

Please sign in to comment.