Skip to content

Commit e2109a3

Browse files
authored
Update @playwright/test 1.47.1 → 1.48.0 (minor) (#14673)
Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request. ### What changed? #### ✳️ @​playwright/test (1.47.1 → 1.48.0) · [Repo](https://github.com/Microsoft/playwright) <details> <summary>Release Notes</summary> <h4><a href="https://github.com/microsoft/playwright/releases/tag/v1.48.0">1.48.0</a></h4> <blockquote><h2 dir="auto">WebSocket routing</h2> <p dir="auto">New methods <a href="https://playwright.dev/docs/api/class-page#page-route-web-socket">page.routeWebSocket()</a> and <a href="https://playwright.dev/docs/api/class-browsercontext#browser-context-route-web-socket">browserContext.routeWebSocket()</a> allow to intercept, modify and mock WebSocket connections initiated in the page. Below is a simple example that mocks WebSocket communication by responding to a <code class="notranslate">"request"</code> with a <code class="notranslate">"response"</code>.</p> <div class="highlight highlight-source-js" dir="auto"><pre class="notranslate"><span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">routeWebSocket</span><span class="pl-kos">(</span><span class="pl-s">'/ws'</span><span class="pl-kos">,</span> <span class="pl-s1">ws</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">ws</span><span class="pl-kos">.</span><span class="pl-en">onMessage</span><span class="pl-kos">(</span><span class="pl-s1">message</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">message</span> <span class="pl-c1">===</span> <span class="pl-s">'request'</span><span class="pl-kos">)</span> <span class="pl-s1">ws</span><span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span><span class="pl-s">'response'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">See <a href="https://playwright.dev/docs/api/class-websocketroute">WebSocketRoute</a> for more details.</p> <h2 dir="auto">UI updates</h2> <ul dir="auto"> <li>New "copy" buttons for annotations and test location in the HTML report.</li> <li>Route method calls like <a href="https://playwright.dev/docs/api/class-route#route-fulfill">route.fulfill()</a> are not shown in the report and trace viewer anymore. You can see which network requests were routed in the network tab instead.</li> <li>New "Copy as cURL" and "Copy as fetch" buttons for requests in the network tab.</li> </ul> <h2 dir="auto">Miscellaneous</h2> <ul dir="auto"> <li>Option <a href="https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-fetch-option-form"><code class="notranslate">form</code></a> and similar ones now accept <a href="https://playwright.dev/docs/api/class-formdata">FormData</a>.</li> <li>New method <a href="https://playwright.dev/docs/api/class-page#page-request-gc">page.requestGC()</a> may help detect memory leaks.</li> <li>New option <a href="https://playwright.dev/docs/api/class-test#test-step-option-location"><code class="notranslate">location</code></a> to pass custom step location.</li> <li>Requests made by <a href="https://playwright.dev/docs/api/class-apirequestcontext">APIRequestContext</a> now record detailed timing and security information in the HAR.</li> </ul> <h2 dir="auto">Browser Versions</h2> <ul dir="auto"> <li>Chromium 130.0.6723.19</li> <li>Mozilla Firefox 130.0</li> <li>WebKit 18.0</li> </ul> <p dir="auto">This version was also tested against the following stable channels:</p> <ul dir="auto"> <li>Google Chrome 129</li> <li>Microsoft Edge 129</li> </ul></blockquote> <h4><a href="https://github.com/microsoft/playwright/releases/tag/v1.47.2">1.47.2</a></h4> <blockquote><h3 dir="auto">Highlights</h3> <p dir="auto"><a href="https://bounce.depfu.com/github.com/microsoft/playwright/pull/32699">#32699</a> [REGRESSION]: fix(codegen): use content_frame property in python/.NET<br> <a href="https://bounce.depfu.com/github.com/microsoft/playwright/issues/32706">#32706</a> [REGRESSION]: page.pause() does not pause test timeout after 1.47<br> <a href="https://bounce.depfu.com/github.com/microsoft/playwright/pull/32661">#32661</a> - fix(trace-viewer): time delta between local and remote actions</p> <h2 dir="auto">Browser Versions</h2> <ul dir="auto"> <li>Chromium 129.0.6668.29</li> <li>Mozilla Firefox 130.0</li> <li>WebKit 18.0</li> </ul> <p dir="auto">This version was also tested against the following stable channels:</p> <ul dir="auto"> <li>Google Chrome 128</li> <li>Microsoft Edge 128</li> </ul></blockquote> <p><em>Does any of this look wrong? <a href="https://depfu.com/packages/npm/@playwright%2Ftest/feedback">Please let us know.</a></em></p> </details> <details> <summary>Commits</summary> <p><a href="https://github.com/Microsoft/playwright/compare/3d2ffd0fe97f23f480092054da5928539a3c5beb...0cdbb11068f86671c05d57391ac3701610f853df">See the full diff on Github</a>. The new version differs by more commits than we can show here.</p> </details> --- ![Depfu Status](https://depfu.com/badges/edd6acd35d74c8d41cbb540c30442adf/stats.svg) [Depfu](https://depfu.com) will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with `@depfu rebase`. <details><summary>All Depfu comment commands</summary> <blockquote><dl> <dt>@​depfu rebase</dt><dd>Rebases against your default branch and redoes this update</dd> <dt>@​depfu recreate</dt><dd>Recreates this PR, overwriting any edits that you've made to it</dd> <dt>@​depfu merge</dt><dd>Merges this PR once your tests are passing and conflicts are resolved</dd> <dt>@​depfu cancel merge</dt><dd>Cancels automatic merging of this PR</dd> <dt>@​depfu close</dt><dd>Closes this PR and deletes the branch</dd> <dt>@​depfu reopen</dt><dd>Restores the branch and reopens this PR (if it's closed)</dd> <dt>@​depfu pause</dt><dd>Ignores all future updates for this dependency and closes this PR</dd> <dt>@​depfu pause [minor|major]</dt><dd>Ignores all future minor/major updates for this dependency and closes this PR</dd> <dt>@​depfu resume</dt><dd>Future versions of this dependency will create PRs again (leaves this PR as is)</dd> </dl></blockquote> </details> Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
1 parent a75152d commit e2109a3

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"license": "MIT",
5050
"devDependencies": {
51-
"@playwright/test": "^1.47.1",
51+
"@playwright/test": "^1.48.0",
5252
"@types/node": "catalog:",
5353
"postcss": "8.4.47",
5454
"postcss-import": "^16.1.0",

pnpm-lock.yaml

+13-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)