diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 954bf8c..041ee82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/cdp_patches/input/os_base/linux.py b/cdp_patches/input/os_base/linux.py index a7f43d0..8c54cea 100644 --- a/cdp_patches/input/os_base/linux.py +++ b/cdp_patches/input/os_base/linux.py @@ -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 = { diff --git a/tests/test_async_selenium.py b/tests/test_async_selenium.py index 805427b..5b3ec8b 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", timeout=30) + is_leaking = await async_driver.eval_async("return await window.is_leaking", timeout=300) assert not is_leaking