From 3faca1fc1ae2afb5d952199dfdbc07560cd1c4b1 Mon Sep 17 00:00:00 2001 From: "microsoft-playwright-automation[bot]" <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com> Date: Fri, 13 Nov 2026 22:32:13 +0000 Subject: [PATCH] chore: roll Playwright to 1.65.1 (bbd948344e) --- DRIVER_VERSION | 2 +- README.md | 2 +- tests/async/library/test_locator_highlight.py | 14 ++++++++------ tests/sync/library/test_locator_highlight.py | 14 ++++++++------ 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/DRIVER_VERSION b/DRIVER_VERSION index 7f0db5693..97e7c36e7 100644 --- a/DRIVER_VERSION +++ b/DRIVER_VERSION @@ -1 +1 @@ -a1f35e1955976e84411f9c10358228a80b763ebe +bbd948344ea9a60bf1e6f125c02ca99b2b51593b diff --git a/README.md b/README.md index baf2e4d5f..96c15b0ea 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 158.0.8127.18 | ✅ | ✅ | ✅ | +| Chromium 159.0.8154.6 | ✅ | ✅ | ✅ | | WebKit 27.2 | ✅ | ✅ | ✅ | | Firefox 159.0 | ✅ | ✅ | ✅ | diff --git a/tests/async/library/test_locator_highlight.py b/tests/async/library/test_locator_highlight.py index b08bfba1b..b79e31be0 100644 --- a/tests/async/library/test_locator_highlight.py +++ b/tests/async/library/test_locator_highlight.py @@ -23,7 +23,7 @@ async def test_LO_193_highlight_should_accept_a_css_string_style( - browser: Browser, server: Server, browser_name: str, is_frozen_webkit: bool + browser: Browser, server: Server, is_frozen_webkit: bool ) -> None: if is_frozen_webkit: pytest.skip("frozen WebKit") @@ -40,14 +40,16 @@ async def test_LO_193_highlight_should_accept_a_css_string_style( await expect(highlight).to_be_visible() style = await highlight.evaluate( """el => ({ - outline: el.style.outline, + // Browsers serialize the 'outline' shorthand in different orders, check the longhands. + outlineWidth: el.style.outlineWidth, + outlineStyle: el.style.outlineStyle, + outlineColor: el.style.outlineColor, backgroundColor: el.style.backgroundColor, })""" ) - if browser_name == "chromium" or browser_name == "firefox": - assert style["outline"] == "rgb(255, 0, 0) solid 3px" - else: - assert style["outline"] == "3px solid rgb(255, 0, 0)" + assert style["outlineWidth"] == "3px" + assert style["outlineStyle"] == "solid" + assert style["outlineColor"] == "rgb(255, 0, 0)" assert style["backgroundColor"] == "rgba(0, 255, 0, 0.25)" await context.close() diff --git a/tests/sync/library/test_locator_highlight.py b/tests/sync/library/test_locator_highlight.py index 73c2df173..3703ecab6 100644 --- a/tests/sync/library/test_locator_highlight.py +++ b/tests/sync/library/test_locator_highlight.py @@ -23,7 +23,7 @@ def test_LO_193_highlight_should_accept_a_css_string_style( - browser: Browser, server: Server, browser_name: str, is_frozen_webkit: bool + browser: Browser, server: Server, is_frozen_webkit: bool ) -> None: if is_frozen_webkit: pytest.skip("frozen WebKit") @@ -40,14 +40,16 @@ def test_LO_193_highlight_should_accept_a_css_string_style( expect(highlight).to_be_visible() style = highlight.evaluate( """el => ({ - outline: el.style.outline, + // Browsers serialize the 'outline' shorthand in different orders, check the longhands. + outlineWidth: el.style.outlineWidth, + outlineStyle: el.style.outlineStyle, + outlineColor: el.style.outlineColor, backgroundColor: el.style.backgroundColor, })""" ) - if browser_name == "chromium" or browser_name == "firefox": - assert style["outline"] == "rgb(255, 0, 0) solid 3px" - else: - assert style["outline"] == "3px solid rgb(255, 0, 0)" + assert style["outlineWidth"] == "3px" + assert style["outlineStyle"] == "solid" + assert style["outlineColor"] == "rgb(255, 0, 0)" assert style["backgroundColor"] == "rgba(0, 255, 0, 0.25)" context.close()