From d464aa357d87adead4fb02a2f9f304c64917612b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:50:59 -0400 Subject: [PATCH] [npm] Bump @playwright/test from 1.46.1 to 1.48.0 (#261) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.46.1 to 1.48.0.
Release notes

Sourced from @​playwright/test's releases.

v1.48.0

WebSocket routing

New methods page.routeWebSocket() and browserContext.routeWebSocket() 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 "request" with a "response".

await page.routeWebSocket('/ws', ws => {
  ws.onMessage(message => {
    if (message === 'request')
      ws.send('response');
  });
});

See WebSocketRoute for more details.

UI updates

Miscellaneous

Browser Versions

This version was also tested against the following stable channels:

v1.47.2

Highlights

microsoft/playwright#32699 [REGRESSION]: fix(codegen): use content_frame property in python/.NET microsoft/playwright#32706 [REGRESSION]: page.pause() does not pause test timeout after 1.47 microsoft/playwright#32661 - fix(trace-viewer): time delta between local and remote actions

Browser Versions

This version was also tested against the following stable channels:

... (truncated)

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@playwright/test&package-manager=npm_and_yarn&previous-version=1.46.1&new-version=1.48.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
--------- Signed-off-by: dependabot[bot] Co-authored-by: James Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/sync-release.yml | 60 ++++++++++++++++++++++++++++++ package-lock.json | 24 ++++++------ package.json | 2 +- 3 files changed, 73 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/sync-release.yml diff --git a/.github/workflows/sync-release.yml b/.github/workflows/sync-release.yml new file mode 100644 index 00000000..6044038a --- /dev/null +++ b/.github/workflows/sync-release.yml @@ -0,0 +1,60 @@ +name: Sync Release with Main + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + update-release-branch: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Git + run: | + git config user.name "GitHub Action" + git config user.email "action@github.com" + + - name: Fetch all branches + run: git fetch --all + + - name: Check for differences between main and release + id: diff-check + run: | + git checkout release + git fetch origin main + if git diff --quiet origin/main; then + echo "No differences, safe to proceed." + echo "diff_found=false" >> $GITHUB_OUTPUT + else + echo "::error::Differences found between release and main!" + echo "diff_found=true" >> $GITHUB_OUTPUT + fi + + - name: Reset release branch to main + if: steps.diff-check.outputs.diff_found == 'false' + run: | + git reset --hard origin/main + + - name: Force push release branch + if: steps.diff-check.outputs.diff_found == 'false' + run: git push origin release --force + + - name: Notify via GitHub Issue if differences found + if: steps.diff-check.outputs.diff_found == 'true' + uses: actions/github-script@v6 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.rest.issues.create({ + owner: context.repo.owner, + repo: context.repo.repo, + title: 'Sync Failure: Differences found between main and release', + body: 'There are differences between `main` and `release` branches that prevented synchronization. Please review the branches and resolve manually.' + }); diff --git a/package-lock.json b/package-lock.json index e1e2a047..4468ea00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "uuid": "^10.0.0" }, "devDependencies": { - "@playwright/test": "^1.46.1", + "@playwright/test": "^1.48.0", "@skeletonlabs/skeleton": "2.10.2", "@skeletonlabs/tw-plugin": "0.4.0", "@sveltejs/adapter-auto": "^3.2.4", @@ -726,12 +726,12 @@ } }, "node_modules/@playwright/test": { - "version": "1.46.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.46.1.tgz", - "integrity": "sha512-Fq6SwLujA/DOIvNC2EL/SojJnkKf/rAwJ//APpJJHRyMi1PdKrY3Az+4XNQ51N4RTbItbIByQ0jgd1tayq1aeA==", + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.48.0.tgz", + "integrity": "sha512-W5lhqPUVPqhtc/ySvZI5Q8X2ztBOUgZ8LbAFy0JQgrXZs2xaILrUcNO3rQjwbLPfGK13+rZsDa1FpG+tqYkT5w==", "dev": true, "dependencies": { - "playwright": "1.46.1" + "playwright": "1.48.0" }, "bin": { "playwright": "cli.js" @@ -4136,12 +4136,12 @@ } }, "node_modules/playwright": { - "version": "1.46.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.46.1.tgz", - "integrity": "sha512-oPcr1yqoXLCkgKtD5eNUPLiN40rYEM39odNpIb6VE6S7/15gJmA1NzVv6zJYusV0e7tzvkU/utBFNa/Kpxmwng==", + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.48.0.tgz", + "integrity": "sha512-qPqFaMEHuY/ug8o0uteYJSRfMGFikhUysk8ZvAtfKmUK3kc/6oNl/y3EczF8OFGYIi/Ex2HspMfzYArk6+XQSA==", "dev": true, "dependencies": { - "playwright-core": "1.46.1" + "playwright-core": "1.48.0" }, "bin": { "playwright": "cli.js" @@ -4154,9 +4154,9 @@ } }, "node_modules/playwright-core": { - "version": "1.46.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.46.1.tgz", - "integrity": "sha512-h9LqIQaAv+CYvWzsZ+h3RsrqCStkBHlgo6/TJlFst3cOTlLghBQlJwPOZKQJTKNaD3QIB7aAVQ+gfWbN3NXB7A==", + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.48.0.tgz", + "integrity": "sha512-RBvzjM9rdpP7UUFrQzRwR8L/xR4HyC1QXMzGYTbf1vjw25/ya9NRAVnXi/0fvFopjebvyPzsmoK58xxeEOaVvA==", "dev": true, "bin": { "playwright-core": "cli.js" diff --git a/package.json b/package.json index e873e0ef..4b188f8d 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "playwright": "playwright test --ui" }, "devDependencies": { - "@playwright/test": "^1.46.1", + "@playwright/test": "^1.48.0", "@skeletonlabs/skeleton": "2.10.2", "@skeletonlabs/tw-plugin": "0.4.0", "@sveltejs/adapter-auto": "^3.2.4",