Skip to content

Commit dcc92ee

Browse files
chore: roll Playwright to 1.65.1 (bbd948344e) (#3346)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
1 parent eecddbc commit dcc92ee

4 files changed

Lines changed: 18 additions & 14 deletions

File tree

‎DRIVER_VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a1f35e1955976e84411f9c10358228a80b763ebe
1+
bbd948344ea9a60bf1e6f125c02ca99b2b51593b

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H
44

55
| | Linux | macOS | Windows |
66
| :--- | :---: | :---: | :---: |
7-
| Chromium <!-- GEN:chromium-version -->158.0.8127.18<!-- GEN:stop --> | ✅ | ✅ | ✅ |
7+
| Chromium <!-- GEN:chromium-version -->159.0.8154.6<!-- GEN:stop --> | ✅ | ✅ | ✅ |
88
| WebKit <!-- GEN:webkit-version -->27.2<!-- GEN:stop --> | ✅ | ✅ | ✅ |
99
| Firefox <!-- GEN:firefox-version -->159.0<!-- GEN:stop --> | ✅ | ✅ | ✅ |
1010

‎tests/async/library/test_locator_highlight.py‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
async def test_LO_193_highlight_should_accept_a_css_string_style(
26-
browser: Browser, server: Server, browser_name: str, is_frozen_webkit: bool
26+
browser: Browser, server: Server, is_frozen_webkit: bool
2727
) -> None:
2828
if is_frozen_webkit:
2929
pytest.skip("frozen WebKit")
@@ -40,14 +40,16 @@ async def test_LO_193_highlight_should_accept_a_css_string_style(
4040
await expect(highlight).to_be_visible()
4141
style = await highlight.evaluate(
4242
"""el => ({
43-
outline: el.style.outline,
43+
// Browsers serialize the 'outline' shorthand in different orders, check the longhands.
44+
outlineWidth: el.style.outlineWidth,
45+
outlineStyle: el.style.outlineStyle,
46+
outlineColor: el.style.outlineColor,
4447
backgroundColor: el.style.backgroundColor,
4548
})"""
4649
)
47-
if browser_name == "chromium" or browser_name == "firefox":
48-
assert style["outline"] == "rgb(255, 0, 0) solid 3px"
49-
else:
50-
assert style["outline"] == "3px solid rgb(255, 0, 0)"
50+
assert style["outlineWidth"] == "3px"
51+
assert style["outlineStyle"] == "solid"
52+
assert style["outlineColor"] == "rgb(255, 0, 0)"
5153
assert style["backgroundColor"] == "rgba(0, 255, 0, 0.25)"
5254

5355
await context.close()

‎tests/sync/library/test_locator_highlight.py‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
def test_LO_193_highlight_should_accept_a_css_string_style(
26-
browser: Browser, server: Server, browser_name: str, is_frozen_webkit: bool
26+
browser: Browser, server: Server, is_frozen_webkit: bool
2727
) -> None:
2828
if is_frozen_webkit:
2929
pytest.skip("frozen WebKit")
@@ -40,14 +40,16 @@ def test_LO_193_highlight_should_accept_a_css_string_style(
4040
expect(highlight).to_be_visible()
4141
style = highlight.evaluate(
4242
"""el => ({
43-
outline: el.style.outline,
43+
// Browsers serialize the 'outline' shorthand in different orders, check the longhands.
44+
outlineWidth: el.style.outlineWidth,
45+
outlineStyle: el.style.outlineStyle,
46+
outlineColor: el.style.outlineColor,
4447
backgroundColor: el.style.backgroundColor,
4548
})"""
4649
)
47-
if browser_name == "chromium" or browser_name == "firefox":
48-
assert style["outline"] == "rgb(255, 0, 0) solid 3px"
49-
else:
50-
assert style["outline"] == "3px solid rgb(255, 0, 0)"
50+
assert style["outlineWidth"] == "3px"
51+
assert style["outlineStyle"] == "solid"
52+
assert style["outlineColor"] == "rgb(255, 0, 0)"
5153
assert style["backgroundColor"] == "rgba(0, 255, 0, 0.25)"
5254

5355
context.close()

0 commit comments

Comments
 (0)