Skip to content

Commit

Permalink
Workflow Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinyzu committed Apr 9, 2024
1 parent 000379e commit faf2576
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 40 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +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
run: pytest
uses: maufrontier/puppeteer-headful@v3
with:
commands: pytest
# - name: Test with PyTest
# run: pytest

Build_Windows:
strategy:
Expand Down
74 changes: 40 additions & 34 deletions cdp_patches/input/os_base/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,46 @@
from Xlib.XK import string_to_keysym
from Xlib.xobject.drawable import Window

symbol_dict = { # Every Common Symbol on a QWERTY Keyboard, Source: https://github.com/python-xlib/python-xlib/blob/4e8bbf8fc4941e5da301a8b3db8d27e98de68666/Xlib/keysymdef/latin1.py
"+": "plus",
"-": "minus",
"*": "asterisk",
"/": "slash",
"^": "asciicircum",
"%": "percent",
"=": "equal",
"<": "less",
">": "greater",
"&": "ampersand",
"|": "bar",
"!": "exclam",
"~": "asciitilde",
"`": "grave",
"@": "at",
"#": "numbersign",
"$": "dollar",
"_": "underscore",
"[": "bracketleft",
"]": "bracketright",
"{": "braceleft",
"}": "braceright",
"(": "parenleft",
")": "parenright",
":": "colon",
";": "semicolon",
",": "comma",
".": "period",
"?": "question",
"\\": "backslash",
'"': "quotedbl",
"'": "quoteright",
" ": "space",
# Every Common Symbol on a QWERTY Keyboard, Source: https://github.com/python-xlib/python-xlib/blob/4e8bbf8fc4941e5da301a8b3db8d27e98de68666/Xlib/keysymdef/latin1.py
# Dict Source: https://github.com/svenlr/swift-map/blob/main/mainloop.py#L459
symbol_dict = {
'@': 'at',
'`': 'grave',
'\t': 'Tab',
'|': 'bar',
'\n': 'Return',
'\r': 'Return',
'~': 'asciitilde',
'{': 'braceleft',
'[': 'bracketleft',
']': 'bracketright',
'\\': 'backslash',
'_': 'underscore',
'^': 'asciicircum',
'!': 'exclam',
' ': 'space',
'#': 'numbersign',
'"': 'quotedbl',
'%': 'percent',
'$': 'dollar',
"'": 'apostrophe',
'&': 'ampersand',
')': 'parenright',
'(': 'parenleft',
'+': 'plus',
'*': 'asterisk',
'-': 'minus',
',': 'comma',
'/': 'slash',
'.': 'period',
'\\e': 'Escape',
'}': 'braceright',
';': 'semicolon',
':': 'colon',
'=': 'equal',
'<': 'less',
'?': 'question',
'>': 'greater'
}

layouts_shifted_chars = {
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", timeout=30)
is_leaking = await async_driver.eval_async("return await window.is_leaking", timeout=300)
assert not is_leaking


Expand Down

0 comments on commit faf2576

Please sign in to comment.