From bd7eff6dfa46c0f6895f3f5e9f9f9e400a813957 Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Fri, 7 May 2021 20:09:51 +0530 Subject: [PATCH 001/714] fix: fix broken deps for PEP 517 (#669) --- .pre-commit-config.yaml | 2 +- local-requirements.txt | 10 +++++----- pyproject.toml | 4 ++-- setup.py | 1 - 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 84a9b43f2..ec31b6057 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: check-toml - id: requirements-txt-fixer - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 21.5b0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy diff --git a/local-requirements.txt b/local-requirements.txt index f02c325d6..465be0662 100644 --- a/local-requirements.txt +++ b/local-requirements.txt @@ -1,6 +1,6 @@ -auditwheel==3.3.1 +auditwheel==4.0.0 autobahn==21.3.1 -black==20.8b1 +black==21.5b0 flake8==3.9.1 flaky==3.7.0 mypy==0.812 @@ -10,8 +10,8 @@ Pillow==8.2.0 pixelmatch==0.2.3 pre-commit==2.10.1 pyOpenSSL==20.0.1 -pytest==6.2.2 -pytest-asyncio==0.15.0 +pytest==6.2.4 +pytest-asyncio==0.15.1 pytest-cov==2.11.1 pytest-repeat==0.9.1 pytest-sugar==0.9.4 @@ -19,7 +19,7 @@ pytest-timeout==1.4.2 pytest-xdist==2.2.1 requests==2.25.1 service_identity==18.1.0 -setuptools==56.0.0 +setuptools==56.1.0 twine==3.3.0 twisted==21.2.0 wheel==0.36.2 diff --git a/pyproject.toml b/pyproject.toml index 05e6283de..23f6eccae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["setuptools-scm", "wheel", "auditwheel"] -build-backend = "setuptools.build_meta" +requires = ["setuptools-scm", "wheel==0.36.2", "auditwheel==4.0.0"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 2cefc5271..9b8519193 100644 --- a/setup.py +++ b/setup.py @@ -120,7 +120,6 @@ def run(self) -> None: with InWheel( in_wheel=whlfile, out_wheel=os.path.join("wheelhouse", os.path.basename(whlfile)), - ret_self=True, ): print("Updating RECORD file of %s" % whlfile) shutil.rmtree(self.dist_dir) From dee8d6f5da0da22e52d1cbc02bf26d5915949ecd Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Fri, 7 May 2021 20:12:17 +0530 Subject: [PATCH 002/714] feat(roll): roll Playwright to 1.11.0-1620331022000 (#664) --- .github/workflows/ci.yml | 10 ++-- README.md | 4 +- playwright/async_api/_generated.py | 78 +++++++++++++++++++---------- playwright/sync_api/_generated.py | 78 +++++++++++++++++++---------- setup.py | 2 +- tests/async/test_accessibility.py | 79 ++++++++++++++++++++++-------- tests/sync/test_accessibility.py | 79 ++++++++++++++++++++++-------- 7 files changed, 228 insertions(+), 102 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c97117bfe..532c26e81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -145,19 +145,19 @@ jobs: - name: Install ffmpeg run: python -m playwright install ffmpeg - name: Common Tests - run: pytest -vv tests/common --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90 + run: pytest tests/common --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90 - name: Test Sync API if: matrix.os != 'ubuntu-latest' - run: pytest -vv tests/sync --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90 + run: pytest tests/sync --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90 - name: Test Sync API if: matrix.os == 'ubuntu-latest' - run: xvfb-run pytest -vv tests/sync --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90 + run: xvfb-run pytest tests/sync --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90 - name: Test Async API if: matrix.os != 'ubuntu-latest' - run: pytest -vv tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90 + run: pytest tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90 - name: Test Async API if: matrix.os == 'ubuntu-latest' - run: xvfb-run pytest -vv tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90 + run: xvfb-run pytest tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90 - uses: actions/upload-artifact@v2 if: failure() with: diff --git a/README.md b/README.md index 36c5b362b..743814b90 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H | | Linux | macOS | Windows | | :--- | :---: | :---: | :---: | -| Chromium 91.0.4469.0 | ✅ | ✅ | ✅ | +| Chromium 92.0.4498.0 | ✅ | ✅ | ✅ | | WebKit 14.2 | ✅ | ✅ | ✅ | -| Firefox 89.0b2 | ✅ | ✅ | ✅ | +| Firefox 89.0b6 | ✅ | ✅ | ✅ | Headless execution is supported for all browsers on all platforms. diff --git a/playwright/async_api/_generated.py b/playwright/async_api/_generated.py index e6ee34ac4..cebbd7082 100644 --- a/playwright/async_api/_generated.py +++ b/playwright/async_api/_generated.py @@ -1669,12 +1669,16 @@ async def select_option( ) -> typing.List[str]: """ElementHandle.select_option - Returns the array of option values that have been successfully selected. + This method waits for [actionability](./actionability.md) checks, waits until all specified options are present in the + `` element, this method throws an error. However, if the element is inside the + `