Skip to content

Commit

Permalink
chore: roll to Playwright v1.49.1
Browse files Browse the repository at this point in the history
  • Loading branch information
canstand committed Dec 10, 2024
1 parent c6f85ed commit 3574f7d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
16 changes: 10 additions & 6 deletions generated-structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -811,10 +811,12 @@ type BrowserTypeLaunchOptions struct {
//
// [here]: https://peter.sh/experiments/chromium-command-line-switches/
Args []string `json:"args"`
// Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary",
// "msedge", "msedge-beta", "msedge-dev", "msedge-canary". Read more about using
// [Google Chrome and Microsoft Edge].
// Browser distribution channel.
// Use "chromium" to [opt in to new headless mode].
// Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or
// "msedge-canary" to use branded [Google Chrome and Microsoft Edge].
//
// [opt in to new headless mode]: https://playwright.dev/docs/browsers#opt-in-to-new-headless-mode
// [Google Chrome and Microsoft Edge]: https://playwright.dev/docs/browsers#google-chrome--microsoft-edge
Channel *string `json:"channel"`
// Enable Chromium sandboxing. Defaults to `false`.
Expand Down Expand Up @@ -895,10 +897,12 @@ type BrowserTypeLaunchPersistentContextOptions struct {
BaseURL *string `json:"baseURL"`
// Toggles bypassing page's Content-Security-Policy. Defaults to `false`.
BypassCSP *bool `json:"bypassCSP"`
// Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary",
// "msedge", "msedge-beta", "msedge-dev", "msedge-canary". Read more about using
// [Google Chrome and Microsoft Edge].
// Browser distribution channel.
// Use "chromium" to [opt in to new headless mode].
// Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or
// "msedge-canary" to use branded [Google Chrome and Microsoft Edge].
//
// [opt in to new headless mode]: https://playwright.dev/docs/browsers#opt-in-to-new-headless-mode
// [Google Chrome and Microsoft Edge]: https://playwright.dev/docs/browsers#google-chrome--microsoft-edge
Channel *string `json:"channel"`
// Enable Chromium sandboxing. Defaults to `false`.
Expand Down
16 changes: 8 additions & 8 deletions patches/main.patch
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ index e286c63bf..7dbd5f4fd 100644
* alias-csharp: RunAndWaitForNavigation
- returns: <[null]|[Response]>
diff --git a/docs/src/api/class-locatorassertions.md b/docs/src/api/class-locatorassertions.md
index 369dd995e..5b9f62bba 100644
index 5b4fc45fe..264b363f0 100644
--- a/docs/src/api/class-locatorassertions.md
+++ b/docs/src/api/class-locatorassertions.md
@@ -67,7 +67,7 @@ public class ExampleTests : PageTest
Expand All @@ -550,7 +550,7 @@ index 369dd995e..5b9f62bba 100644
- returns: <[LocatorAssertions]>

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

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

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

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

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

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

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

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

## csharp-java-browser-option-firefoxuserprefs
Expand Down
2 changes: 1 addition & 1 deletion playwright
Submodule playwright updated 42 files
+19 −2 docs/src/api/class-locatorassertions.md
+4 −4 docs/src/api/class-tracing.md
+5 −1 docs/src/api/params.md
+10 −4 docs/src/aria-snapshots.md
+1 −1 docs/src/browsers.md
+3 −5 docs/src/chrome-extensions-js-python.md
+85 −0 docs/src/release-notes-csharp.md
+73 −0 docs/src/release-notes-java.md
+5 −0 docs/src/release-notes-js.md
+74 −0 docs/src/release-notes-python.md
+30 −30 package-lock.json
+1 −1 package.json
+2 −2 packages/playwright-browser-chromium/package.json
+2 −2 packages/playwright-browser-firefox/package.json
+2 −2 packages/playwright-browser-webkit/package.json
+2 −2 packages/playwright-chromium/package.json
+1 −1 packages/playwright-core/package.json
+3 −0 packages/playwright-core/src/server/chromium/crPage.ts
+0 −1 packages/playwright-core/src/server/injected/recorder/recorder.ts
+5 −1 packages/playwright-core/src/server/injected/roleUtils.ts
+8 −16 packages/playwright-core/src/server/injected/yaml.ts
+4 −4 packages/playwright-core/src/server/launchApp.ts
+2 −1 packages/playwright-core/src/server/recorder/recorderCollection.ts
+3 −0 packages/playwright-core/src/server/webkit/wkPage.ts
+18 −9 packages/playwright-core/types/types.d.ts
+3 −3 packages/playwright-ct-core/package.json
+2 −2 packages/playwright-ct-react/package.json
+2 −2 packages/playwright-ct-react17/package.json
+2 −2 packages/playwright-ct-svelte/package.json
+2 −2 packages/playwright-ct-vue/package.json
+2 −2 packages/playwright-firefox/package.json
+2 −2 packages/playwright-test/package.json
+2 −2 packages/playwright-webkit/package.json
+2 −2 packages/playwright/package.json
+6 −3 packages/playwright/types/test.d.ts
+5 −3 packages/web/src/components/treeView.tsx
+1 −0 tests/components/ct-vue-vite/package.json
+22 −0 tests/library/beforeunload.spec.ts
+30 −0 tests/library/inspector/cli-codegen-1.spec.ts
+10 −0 tests/library/role-utils.spec.ts
+71 −0 tests/page/page-aria-snapshot.spec.ts
+24 −0 tests/playwright-test/ui-mode-trace.spec.ts
2 changes: 1 addition & 1 deletion run.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"strings"
)

const playwrightCliVersion = "1.49.0"
const playwrightCliVersion = "1.49.1"

var (
logger = slog.Default()
Expand Down

0 comments on commit 3574f7d

Please sign in to comment.