Skip to content

Commit 8368a13

Browse files
committed
make CI green
1 parent 04fe1c6 commit 8368a13

File tree

5 files changed

+31
-19
lines changed

5 files changed

+31
-19
lines changed

playwright/async_api/_generated.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14344,9 +14344,12 @@ async def launch(
1434414344
resolved relative to the current working directory. Note that Playwright only works with the bundled Chromium,
1434514345
Firefox or WebKit, use at your own risk.
1434614346
channel : Union[str, None]
14347-
Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary",
14348-
"msedge", "msedge-beta", "msedge-dev", "msedge-canary". Read more about using
14349-
[Google Chrome and Microsoft Edge](../browsers.md#google-chrome--microsoft-edge).
14347+
Browser distribution channel.
14348+
14349+
Use "chromium" to [opt in to new headless mode](../browsers.md#opt-in-to-new-headless-mode).
14350+
14351+
Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or
14352+
"msedge-canary" to use branded [Google Chrome and Microsoft Edge](../browsers.md#google-chrome--microsoft-edge).
1435014353
args : Union[Sequence[str], None]
1435114354
**NOTE** Use custom browser args at your own risk, as some of them may break Playwright functionality.
1435214355

@@ -14499,9 +14502,12 @@ async def launch_persistent_context(
1449914502
user data directory is the **parent** directory of the "Profile Path" seen at `chrome://version`. Pass an empty
1450014503
string to use a temporary directory instead.
1450114504
channel : Union[str, None]
14502-
Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary",
14503-
"msedge", "msedge-beta", "msedge-dev", "msedge-canary". Read more about using
14504-
[Google Chrome and Microsoft Edge](../browsers.md#google-chrome--microsoft-edge).
14505+
Browser distribution channel.
14506+
14507+
Use "chromium" to [opt in to new headless mode](../browsers.md#opt-in-to-new-headless-mode).
14508+
14509+
Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or
14510+
"msedge-canary" to use branded [Google Chrome and Microsoft Edge](../browsers.md#google-chrome--microsoft-edge).
1450514511
executable_path : Union[pathlib.Path, str, None]
1450614512
Path to a browser executable to run instead of the bundled one. If `executablePath` is a relative path, then it is
1450714513
resolved relative to the current working directory. Note that Playwright only works with the bundled Chromium,
@@ -20483,7 +20489,7 @@ async def to_match_aria_snapshot(
2048320489
**Usage**
2048420490

2048520491
```py
20486-
await page.goto('https://demo.playwright.dev/todomvc/')
20492+
await page.goto(\"https://demo.playwright.dev/todomvc/\")
2048720493
await expect(page.locator('body')).to_match_aria_snapshot('''
2048820494
- heading \"todos\"
2048920495
- textbox \"What needs to be done?\"

playwright/sync_api/_generated.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14387,9 +14387,12 @@ def launch(
1438714387
resolved relative to the current working directory. Note that Playwright only works with the bundled Chromium,
1438814388
Firefox or WebKit, use at your own risk.
1438914389
channel : Union[str, None]
14390-
Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary",
14391-
"msedge", "msedge-beta", "msedge-dev", "msedge-canary". Read more about using
14392-
[Google Chrome and Microsoft Edge](../browsers.md#google-chrome--microsoft-edge).
14390+
Browser distribution channel.
14391+
14392+
Use "chromium" to [opt in to new headless mode](../browsers.md#opt-in-to-new-headless-mode).
14393+
14394+
Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or
14395+
"msedge-canary" to use branded [Google Chrome and Microsoft Edge](../browsers.md#google-chrome--microsoft-edge).
1439314396
args : Union[Sequence[str], None]
1439414397
**NOTE** Use custom browser args at your own risk, as some of them may break Playwright functionality.
1439514398

@@ -14544,9 +14547,12 @@ def launch_persistent_context(
1454414547
user data directory is the **parent** directory of the "Profile Path" seen at `chrome://version`. Pass an empty
1454514548
string to use a temporary directory instead.
1454614549
channel : Union[str, None]
14547-
Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary",
14548-
"msedge", "msedge-beta", "msedge-dev", "msedge-canary". Read more about using
14549-
[Google Chrome and Microsoft Edge](../browsers.md#google-chrome--microsoft-edge).
14550+
Browser distribution channel.
14551+
14552+
Use "chromium" to [opt in to new headless mode](../browsers.md#opt-in-to-new-headless-mode).
14553+
14554+
Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or
14555+
"msedge-canary" to use branded [Google Chrome and Microsoft Edge](../browsers.md#google-chrome--microsoft-edge).
1455014556
executable_path : Union[pathlib.Path, str, None]
1455114557
Path to a browser executable to run instead of the bundled one. If `executablePath` is a relative path, then it is
1455214558
resolved relative to the current working directory. Note that Playwright only works with the bundled Chromium,
@@ -20662,7 +20668,7 @@ def to_match_aria_snapshot(
2066220668
**Usage**
2066320669

2066420670
```py
20665-
page.goto('https://demo.playwright.dev/todomvc/')
20671+
page.goto(\"https://demo.playwright.dev/todomvc/\")
2066620672
expect(page.locator('body')).to_match_aria_snapshot('''
2066720673
- heading \"todos\"
2066820674
- textbox \"What needs to be done?\"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import zipfile
2222
from typing import Dict
2323

24-
driver_version = "1.49.0"
24+
driver_version = "1.49.0-beta-1732210972000"
2525

2626
base_wheel_bundles = [
2727
{

tests/async/test_network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,12 +855,12 @@ async def test_set_extra_http_headers_should_throw_for_non_string_header_values(
855855

856856

857857
async def test_response_server_addr(page: Page, server: Server) -> None:
858-
response = await page.goto(f"http://127.0.0.1:{server.PORT}")
858+
response = await page.goto(server.EMPTY_PAGE)
859859
assert response
860860
server_addr = await response.server_addr()
861861
assert server_addr
862862
assert server_addr["port"] == server.PORT
863-
assert server_addr["ipAddress"] in ["127.0.0.1", "::1"]
863+
assert server_addr["ipAddress"] in ["127.0.0.1", "[::1]"]
864864

865865

866866
async def test_response_security_details(

tests/sync/test_network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919

2020

2121
def test_response_server_addr(page: Page, server: Server) -> None:
22-
response = page.goto(f"http://127.0.0.1:{server.PORT}")
22+
response = page.goto(server.EMPTY_PAGE)
2323
assert response
2424
server_addr = response.server_addr()
2525
assert server_addr
2626
assert server_addr["port"] == server.PORT
27-
assert server_addr["ipAddress"] in ["127.0.0.1", "::1"]
27+
assert server_addr["ipAddress"] in ["127.0.0.1", "[::1]"]
2828

2929

3030
def test_response_security_details(

0 commit comments

Comments
 (0)