Skip to content

Commit 81b2e8b

Browse files
authored
chore: roll to Playwright v1.49.1 (#515)
1 parent c6f85ed commit 81b2e8b

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

generated-structs.go

+10-6
Original file line numberDiff line numberDiff line change
@@ -811,10 +811,12 @@ type BrowserTypeLaunchOptions struct {
811811
//
812812
// [here]: https://peter.sh/experiments/chromium-command-line-switches/
813813
Args []string `json:"args"`
814-
// Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary",
815-
// "msedge", "msedge-beta", "msedge-dev", "msedge-canary". Read more about using
816-
// [Google Chrome and Microsoft Edge].
814+
// Browser distribution channel.
815+
// Use "chromium" to [opt in to new headless mode].
816+
// Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or
817+
// "msedge-canary" to use branded [Google Chrome and Microsoft Edge].
817818
//
819+
// [opt in to new headless mode]: https://playwright.dev/docs/browsers#opt-in-to-new-headless-mode
818820
// [Google Chrome and Microsoft Edge]: https://playwright.dev/docs/browsers#google-chrome--microsoft-edge
819821
Channel *string `json:"channel"`
820822
// Enable Chromium sandboxing. Defaults to `false`.
@@ -895,10 +897,12 @@ type BrowserTypeLaunchPersistentContextOptions struct {
895897
BaseURL *string `json:"baseURL"`
896898
// Toggles bypassing page's Content-Security-Policy. Defaults to `false`.
897899
BypassCSP *bool `json:"bypassCSP"`
898-
// Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary",
899-
// "msedge", "msedge-beta", "msedge-dev", "msedge-canary". Read more about using
900-
// [Google Chrome and Microsoft Edge].
900+
// Browser distribution channel.
901+
// Use "chromium" to [opt in to new headless mode].
902+
// Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or
903+
// "msedge-canary" to use branded [Google Chrome and Microsoft Edge].
901904
//
905+
// [opt in to new headless mode]: https://playwright.dev/docs/browsers#opt-in-to-new-headless-mode
902906
// [Google Chrome and Microsoft Edge]: https://playwright.dev/docs/browsers#google-chrome--microsoft-edge
903907
Channel *string `json:"channel"`
904908
// Enable Chromium sandboxing. Defaults to `false`.

patches/main.patch

+8-8
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ index e286c63bf..7dbd5f4fd 100644
538538
* alias-csharp: RunAndWaitForNavigation
539539
- returns: <[null]|[Response]>
540540
diff --git a/docs/src/api/class-locatorassertions.md b/docs/src/api/class-locatorassertions.md
541-
index 369dd995e..5b9f62bba 100644
541+
index 5b4fc45fe..264b363f0 100644
542542
--- a/docs/src/api/class-locatorassertions.md
543543
+++ b/docs/src/api/class-locatorassertions.md
544544
@@ -67,7 +67,7 @@ public class ExampleTests : PageTest
@@ -550,7 +550,7 @@ index 369dd995e..5b9f62bba 100644
550550
- returns: <[LocatorAssertions]>
551551

552552
Makes the assertion check for the opposite condition. For example, this code tests that the Locator doesn't contain text `"error"`:
553-
@@ -1122,7 +1122,7 @@ Expected substring or RegExp or a list of those.
553+
@@ -1139,7 +1139,7 @@ Expected substring or RegExp or a list of those.
554554

555555
### param: LocatorAssertions.toContainText.expected
556556
* since: v1.18
@@ -559,7 +559,7 @@ index 369dd995e..5b9f62bba 100644
559559
- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>
560560

561561
Expected substring or RegExp or a list of those.
562-
@@ -1417,7 +1417,7 @@ Expected class or RegExp or a list of those.
562+
@@ -1434,7 +1434,7 @@ Expected class or RegExp or a list of those.
563563

564564
### param: LocatorAssertions.toHaveClass.expected
565565
* since: v1.18
@@ -568,7 +568,7 @@ index 369dd995e..5b9f62bba 100644
568568
- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>
569569

570570
Expected class or RegExp or a list of those.
571-
@@ -1944,7 +1944,7 @@ Expected string or RegExp or a list of those.
571+
@@ -1961,7 +1961,7 @@ Expected string or RegExp or a list of those.
572572

573573
### param: LocatorAssertions.toHaveText.expected
574574
* since: v1.18
@@ -577,7 +577,7 @@ index 369dd995e..5b9f62bba 100644
577577
- `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>>
578578

579579
Expected string or RegExp or a list of those.
580-
@@ -2078,7 +2078,7 @@ await Expect(locator).ToHaveValuesAsync(new Regex[] { new Regex("R"), new Regex(
580+
@@ -2095,7 +2095,7 @@ await Expect(locator).ToHaveValuesAsync(new Regex[] { new Regex("R"), new Regex(
581581

582582
### param: LocatorAssertions.toHaveValues.values
583583
* since: v1.23
@@ -1063,7 +1063,7 @@ index 4c3011430..4ced2d60d 100644
10631063
- `path` ?<[path]> Path to the JavaScript file. If `path` is a relative path, then it is resolved relative to the
10641064
current working directory. Optional.
10651065
diff --git a/docs/src/api/class-tracing.md b/docs/src/api/class-tracing.md
1066-
index 5a89dbdac..860d66276 100644
1066+
index 3b0011c7b..48a28fa24 100644
10671067
--- a/docs/src/api/class-tracing.md
10681068
+++ b/docs/src/api/class-tracing.md
10691069
@@ -142,7 +142,7 @@ If this option is true tracing will
@@ -1155,7 +1155,7 @@ index e23316ebc..ae3d20b9f 100644
11551155
* since: v1.48
11561156
* langs: csharp, java
11571157
diff --git a/docs/src/api/params.md b/docs/src/api/params.md
1158-
index 9b8d3de31..8aa9741c9 100644
1158+
index e059fffe4..2f18feb98 100644
11591159
--- a/docs/src/api/params.md
11601160
+++ b/docs/src/api/params.md
11611161
@@ -8,7 +8,7 @@ When to consider operation succeeded, defaults to `load`. Events can be either:
@@ -1520,7 +1520,7 @@ index 9b8d3de31..8aa9741c9 100644
15201520
- %%-context-option-forcedColors-%%
15211521
- %%-context-option-forcedColors-csharp-python-%%
15221522
- %%-context-option-logger-%%
1523-
@@ -1054,7 +1117,7 @@ Firefox user preferences. Learn more about the Firefox user preferences at
1523+
@@ -1058,7 +1121,7 @@ Firefox user preferences. Learn more about the Firefox user preferences at
15241524
[`about:config`](https://support.mozilla.org/en-US/kb/about-config-editor-firefox).
15251525

15261526
## csharp-java-browser-option-firefoxuserprefs

playwright

Submodule playwright updated 42 files

run.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"strings"
1717
)
1818

19-
const playwrightCliVersion = "1.49.0"
19+
const playwrightCliVersion = "1.49.1"
2020

2121
var (
2222
logger = slog.Default()

0 commit comments

Comments
 (0)