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

chore(deps): update dependency @playwright/test to v1.47.2 - autoclosed #216

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 4, 2024

This PR contains the following updates:

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

Release Notes

microsoft/playwright (@​playwright/test)

v1.47.2

Compare Source

Highlights

https://github.com/microsoft/playwright/pull/32699- [REGRESSION]: fix(codegen): use content_frame property in python/.NEThttps://github.com/microsoft/playwright/issues/327066- [REGRESSION]: page.pause() does not pause test timeout after 1.4https://github.com/microsoft/playwright/pull/3266161 - fix(trace-viewer): time delta between local and remote actions

Browser Versions

  • Chromium 129.0.6668.29
  • Mozilla Firefox 130.0
  • WebKit 18.0

This version was also tested against the following stable channels:

  • Google Chrome 128
  • Microsoft Edge 128

v1.47.1

Compare Source

v1.47.0

Compare Source

v1.46.1

Compare Source

v1.46.0

Compare Source

v1.45.3

Compare Source

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

v1.43.1

Compare Source

Highlights

https://github.com/microsoft/playwright/issues/30300 - [REGRESSION]: UI mode restarts if keep storage statehttps://github.com/microsoft/playwright/issues/303399 - [REGRESSION]: Brand new install of playwright, unable to run chromium with show browser using vscode

Browser Versions
  • Chromium 124.0.6367.29
  • Mozilla Firefox 124.0
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 123
  • Microsoft Edge 123

v1.43.0

Compare Source

New APIs

  • Method browserContext.clearCookies() now supports filters to remove only some cookies.

    // Clear all cookies.
    await context.clearCookies();
    // New: clear cookies with a particular name.
    await context.clearCookies({ name: 'session-id' });
    // New: clear cookies for a particular domain.
    await context.clearCookies({ domain: 'my-origin.com' });
  • New mode retain-on-first-failure for testOptions.trace. In this mode, trace is recorded for the first run of each test, but not for retires. When test run fails, the trace file is retained, otherwise it is removed.

    import { defineConfig } from '@​playwright/test';
    
    export default defineConfig({
      use: {
        trace: 'retain-on-first-failure',
      },
    });
  • New property testInfo.tags exposes test tags during test execution.

    test('example', async ({ page }) => {
      console.log(test.info().tags);
    });
  • New method locator.contentFrame() converts a Locator object to a FrameLocator. This can be useful when you have a Locator object obtained somewhere, and later on would like to interact with the content inside the frame.

    const locator = page.locator('iframe[name="embedded"]');
    // ...
    const frameLocator = locator.contentFrame();
    await frameLocator.getByRole('button').click();
  • New method frameLocator.owner() converts a FrameLocator object to a Locator. This can be useful when you have a FrameLocator object obtained somewhere, and later on would like to interact with the iframe element.

    const frameLocator = page.frameLocator('iframe[name="embedded"]');
    // ...
    const locator = frameLocator.owner();
    await expect(locator).toBeVisible();

UI Mode Updates

Playwright UI Mode

  • See tags in the test list.
  • Filter by tags by typing @fast or clicking on the tag itself.
  • New shortcuts:
    • F5 to run tests.
    • Shift F5 to stop running tests.
    • Ctrl ` to toggle test output.

Browser Versions

  • Chromium 124.0.6367.29
  • Mozilla Firefox 124.0
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 123
  • Microsoft Edge 123

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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 was generated by Mend Renovate. View the repository job log.

Copy link

render bot commented Apr 4, 2024

Copy link

vercel bot commented Apr 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kitap-kurdu-bx87 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 7:26pm

@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from d5c9a13 to 860c725 Compare April 12, 2024 19:36
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.43.0 chore(deps): update dependency @playwright/test to v1.43.1 Apr 12, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 860c725 to 1d48c05 Compare April 21, 2024 11:16
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 1d48c05 to 6a96a32 Compare May 7, 2024 02:22
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.43.1 chore(deps): update dependency @playwright/test to v1.44.0 May 7, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 6a96a32 to 7429a62 Compare May 23, 2024 10:46
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.44.0 chore(deps): update dependency @playwright/test to v1.44.1 May 23, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 7429a62 to cca67af Compare June 25, 2024 02:13
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.44.1 chore(deps): update dependency @playwright/test to v1.45.0 Jun 25, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from cca67af to 5715a14 Compare July 2, 2024 18:19
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.45.0 chore(deps): update dependency @playwright/test to v1.45.1 Jul 2, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 5715a14 to 1aa41dd Compare July 16, 2024 14:56
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.45.1 chore(deps): update dependency @playwright/test to v1.45.2 Jul 16, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 1aa41dd to d4b323f Compare July 22, 2024 18:20
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.45.2 chore(deps): update dependency @playwright/test to v1.45.3 Jul 22, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from d4b323f to 7c01f22 Compare August 5, 2024 21:52
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.45.3 chore(deps): update dependency @playwright/test to v1.46.0 Aug 5, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 7c01f22 to f7d868b Compare August 16, 2024 22:47
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.46.0 chore(deps): update dependency @playwright/test to v1.46.1 Aug 16, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from f7d868b to 3fd46dd Compare September 6, 2024 02:13
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.46.1 chore(deps): update dependency @playwright/test to v1.47.0 Sep 6, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from 3fd46dd to ff8dccb Compare September 13, 2024 20:18
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.47.0 chore(deps): update dependency @playwright/test to v1.47.1 Sep 13, 2024
@renovate renovate bot force-pushed the renovate/playwright-monorepo branch from ff8dccb to 849e090 Compare September 20, 2024 19:25
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.47.1 chore(deps): update dependency @playwright/test to v1.47.2 Sep 20, 2024
@renovate renovate bot changed the title chore(deps): update dependency @playwright/test to v1.47.2 chore(deps): update dependency @playwright/test to v1.47.2 - autoclosed Oct 4, 2024
@renovate renovate bot closed this Oct 4, 2024
@renovate renovate bot deleted the renovate/playwright-monorepo branch October 4, 2024 16:25
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.

0 participants