Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency @playwright/test to v1.45.2 #3909

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 25, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@playwright/test (source) 1.43.1 -> 1.45.2 age adoption passing confidence

Release Notes

microsoft/playwright (@​playwright/test)

v1.45.2

Compare Source

v1.45.1

Compare Source

v1.45.0

Compare Source

v1.44.1

Compare Source

Highlights

https://github.com/microsoft/playwright/issues/30779 - [REGRESSION]: When using video: 'on' with VSCode extension the browser got closed
https://github.com/microsoft/playwright/issues/30755 - [REGRESSION]: Electron launch with spaces inside executablePath didn't workhttps://github.com/microsoft/playwright/issues/307700 - [REGRESSION]: Mask elements outside of viewport when creating fullscreen screenshots didn't worhttps://github.com/microsoft/playwright/issues/3085858 - [REGRESSION]: ipv6 got shown instead of localhost in show-trace/show-report

Browser Versions

  • Chromium 125.0.6422.14
  • Mozilla Firefox 125.0.1
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 124
  • Microsoft Edge 124

v1.44.0

Compare Source

New APIs

Accessibility assertions

  • expect(locator).toHaveAccessibleName() checks if the element has the specified accessible name:

    const locator = page.getByRole('button');
    await expect(locator).toHaveAccessibleName('Submit');
  • expect(locator).toHaveAccessibleDescription() checks if the element has the specified accessible description:

    const locator = page.getByRole('button');
    await expect(locator).toHaveAccessibleDescription('Upload a photo');
  • expect(locator).toHaveRole() checks if the element has the specified ARIA role:

    const locator = page.getByTestId('save-button');
    await expect(locator).toHaveRole('button');

Locator handler

  • After executing the handler added with page.addLocatorHandler(), Playwright will now wait until the overlay that triggered the handler is not visible anymore. You can opt-out of this behavior with the new noWaitAfter option.
  • You can use new times option in page.addLocatorHandler() to specify maximum number of times the handler should be run.
  • The handler in page.addLocatorHandler() now accepts the locator as argument.
  • New page.removeLocatorHandler() method for removing previously added locator handlers.
const locator = page.getByText('This interstitial covers the button');
await page.addLocatorHandler(locator, async overlay => {
  await overlay.locator('#close').click();
}, { times: 3, noWaitAfter: true });
// Run your tests that can be interrupted by the overlay.
// ...
await page.removeLocatorHandler(locator);

Miscellaneous options

  • multipart option in apiRequestContext.fetch() now accepts FormData and supports repeating fields with the same name.

    const formData = new FormData();
    formData.append('file', new File(['let x = 2024;'], 'f1.js', { type: 'text/javascript' }));
    formData.append('file', new File(['hello'], 'f2.txt', { type: 'text/plain' }));
    context.request.post('https://example.com/uploadFiles', {
      multipart: formData
    });
  • expect(callback).toPass({ intervals }) can now be configured by expect.toPass.inervals option globally in testConfig.expect or per project in testProject.expect.

  • expect(page).toHaveURL(url) now supports ignoreCase option.

  • testProject.ignoreSnapshots allows to configure per project whether to skip screenshot expectations.

Reporter API

  • New method suite.entries() returns child test suites and test cases in their declaration order. suite.type and testCase.type can be used to tell apart test cases and suites in the list.
  • Blob reporter now allows overriding report file path with a single option outputFile. The same option can also be specified as PLAYWRIGHT_BLOB_OUTPUT_FILE environment variable that might be more convenient on CI/CD.
  • JUnit reporter now supports includeProjectInTestName option.

Command line

  • --last-failed CLI option for running only tests that failed in the previous run.

    First run all tests:

    $ npx playwright test
    
    Running 103 tests using 5 workers
    ...
    2 failed
      [chromium] › my-test.spec.ts:8:5 › two ─────────────────────────────────────────────────────────
      [chromium] › my-test.spec.ts:13:5 › three ──────────────────────────────────────────────────────
    101 passed (30.0s)

    Now fix the failing tests and run Playwright again with --last-failed option:

    $ npx playwright test --last-failed
    
    Running 2 tests using 2 workers
      2 passed (1.2s)

Browser Versions

  • Chromium 125.0.6422.14
  • Mozilla Firefox 125.0.1
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 124
  • Microsoft Edge 124

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot enabled auto-merge (squash) June 25, 2024 02:13
Copy link

changeset-bot bot commented Jun 25, 2024

⚠️ No Changeset found

Latest commit: d6bfa1b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

codesandbox-ci bot commented Jun 25, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from be17051 to 2b9245d Compare July 2, 2024 20:17
@renovate renovate bot changed the title Update dependency @playwright/test to v1.45.0 Update dependency @playwright/test to v1.45.1 Jul 2, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 5 times, most recently from e3b3e87 to 573c33a Compare July 4, 2024 21:37
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 2 times, most recently from 143983e to 42114f3 Compare July 5, 2024 02:25
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 2 times, most recently from 31cc062 to 0462d97 Compare July 5, 2024 04:19
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 0462d97 to 40c5e26 Compare July 5, 2024 13:37
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 40c5e26 to 68ab072 Compare July 5, 2024 17:56
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 68ab072 to b71870f Compare July 5, 2024 19:40
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from b71870f to 2945677 Compare July 6, 2024 04:49
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 2945677 to 45e63ed Compare July 6, 2024 22:04
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 45e63ed to 1dd51fb Compare July 6, 2024 22:08
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 1dd51fb to 5b606d8 Compare July 11, 2024 03:57
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 5b606d8 to 925ef7a Compare July 16, 2024 14:42
@renovate renovate bot changed the title Update dependency @playwright/test to v1.45.1 Update dependency @playwright/test to v1.45.2 Jul 16, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 3 times, most recently from b45dc74 to c7831cb Compare July 17, 2024 12:54
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 2 times, most recently from 513a328 to 697ebef Compare July 17, 2024 18:27
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 697ebef to ecc4f7a Compare July 17, 2024 23:07
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch 2 times, most recently from da48629 to f70d81d Compare July 18, 2024 03:43
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from f70d81d to 5063ddf Compare July 18, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants