diff --git a/README.md b/README.md index 3bacdb735..e597e4778 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H | | Linux | macOS | Windows | | :--- | :---: | :---: | :---: | -| Chromium 109.0.5414.74 | ✅ | ✅ | ✅ | +| Chromium 110.0.5481.38 | ✅ | ✅ | ✅ | | WebKit 16.4 | ✅ | ✅ | ✅ | | Firefox 108.0.2 | ✅ | ✅ | ✅ | diff --git a/scripts/expected_api_mismatch.txt b/scripts/expected_api_mismatch.txt index 581817d73..4619a29f5 100644 --- a/scripts/expected_api_mismatch.txt +++ b/scripts/expected_api_mismatch.txt @@ -9,13 +9,12 @@ Parameter type mismatch in Accessibility.snapshot(return=): documented as Union[ # One vs two arguments in the callback, Python explicitly unions. Parameter type mismatch in BrowserContext.route(handler=): documented as Callable[[Route, Request], Union[Any, Any]], code has Union[Callable[[Route, Request], Any], Callable[[Route], Any]] -Parameter type mismatch in BrowserContext.unroute(handler=): documented as Union[Callable[[Route, Request], Any], None], code has Union[Callable[[Route, Request], Any], Callable[[Route], Any], None] +Parameter type mismatch in BrowserContext.unroute(handler=): documented as Union[Callable[[Route, Request], Union[Any, Any]], None], code has Union[Callable[[Route, Request], Any], Callable[[Route], Any], None] Parameter type mismatch in Page.route(handler=): documented as Callable[[Route, Request], Union[Any, Any]], code has Union[Callable[[Route, Request], Any], Callable[[Route], Any]] -Parameter type mismatch in Page.unroute(handler=): documented as Union[Callable[[Route, Request], Any], None], code has Union[Callable[[Route, Request], Any], Callable[[Route], Any], None] +Parameter type mismatch in Page.unroute(handler=): documented as Union[Callable[[Route, Request], Union[Any, Any]], None], code has Union[Callable[[Route, Request], Any], Callable[[Route], Any], None] # Temporary Fix Method not implemented: Error.name Method not implemented: Error.stack Method not implemented: Error.message Method not implemented: PlaywrightAssertions.expect -Method not implemented: Locator.viewport_ratio diff --git a/setup.py b/setup.py index 00029b5f6..6fd420340 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ InWheel = None from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand -driver_version = "1.30.0-alpha-jan-16-2023" +driver_version = "1.30.0-beta-1674276599000" def extractall(zip: zipfile.ZipFile, path: str) -> None: diff --git a/tests/async/test_fetch_global.py b/tests/async/test_fetch_global.py index 7b1591f8d..6a915fc49 100644 --- a/tests/async/test_fetch_global.py +++ b/tests/async/test_fetch_global.py @@ -70,9 +70,9 @@ async def test_should_support_global_user_agent_option( async def test_should_support_global_timeout_option( playwright: Playwright, server: Server ): - request = await playwright.request.new_context(timeout=1) + request = await playwright.request.new_context(timeout=100) server.set_route("/empty.html", lambda req: None) - with pytest.raises(Error, match="Request timed out after 1ms"): + with pytest.raises(Error, match="Request timed out after 100ms"): await request.get(server.EMPTY_PAGE) diff --git a/tests/async/test_page.py b/tests/async/test_page.py index 47a23fcd2..fe2a5b45f 100644 --- a/tests/async/test_page.py +++ b/tests/async/test_page.py @@ -822,7 +822,7 @@ async def test_fill_should_throw_on_unsupported_inputs(page, server): ) with pytest.raises(Error) as exc_info: await page.fill("input", "") - assert f'input of type "{type}" cannot be filled' in exc_info.value.message + assert f'Input of type "{type}" cannot be filled' in exc_info.value.message async def test_fill_should_fill_different_input_types(page, server): diff --git a/tests/sync/test_fetch_global.py b/tests/sync/test_fetch_global.py index 6cdf9b223..fc30cc00c 100644 --- a/tests/sync/test_fetch_global.py +++ b/tests/sync/test_fetch_global.py @@ -64,9 +64,9 @@ def test_should_support_global_user_agent_option( def test_should_support_global_timeout_option( playwright: Playwright, server: Server ) -> None: - request = playwright.request.new_context(timeout=1) + request = playwright.request.new_context(timeout=100) server.set_route("/empty.html", lambda req: None) - with pytest.raises(Error, match="Request timed out after 1ms"): + with pytest.raises(Error, match="Request timed out after 100ms"): request.get(server.EMPTY_PAGE)