Skip to content

Bump playwright from 1.23.1 to 1.31.0 in /browser

Bumps playwright from 1.23.1 to 1.31.0.

Release notes

Sourced from playwright's releases.

v1.31.0

New APIs

  • New property TestProject.dependencies to configure dependencies between projects.

    Using dependencies allows global setup to produce traces and other artifacts, see the setup steps in the test report and more.

    // playwright.config.ts
    import { defineConfig } from '@playwright/test';
    export default defineConfig({
    projects: [
    {
    name: 'setup',
    testMatch: /global.setup.ts/,
    },
    {
    name: 'chromium',
    use: devices['Desktop Chrome'],
    dependencies: ['setup'],
    },
    {
    name: 'firefox',
    use: devices['Desktop Firefox'],
    dependencies: ['setup'],
    },
    {
    name: 'webkit',
    use: devices['Desktop Safari'],
    dependencies: ['setup'],
    },
    ],
    });
  • New assertion expect(locator).toBeInViewport() ensures that locator points to an element that intersects viewport, according to the intersection observer API.

    const button = page.getByRole('button');
    // Make sure at least some part of element intersects viewport.
    await expect(button).toBeInViewport();
    // Make sure element is fully outside of viewport.
    await expect(button).not.toBeInViewport();
    // Make sure that at least half of the element intersects viewport.
    await expect(button).toBeInViewport({ ratio: 0.5 });

... (truncated)

Commits
  • 4413b01 cherry-pick(#20994): docs: fix release notes
  • 1cad99c cherry-pick(#21008): docs: update auth docs to remove cross-run caching
  • 725dd8b cherry-pick(#21010): chore: align js routing logic with other langs (#21036)
  • 63642bd cherry-pick(#20997): chore: update release notes for 1.31
  • bb3b96e cherry-pick(#20933): chore: 1.31 release notes for js
  • d32d466 cherry-pick(#20998): fix: stricter condition for Firefox codegen tests workar...
  • 31ace75 cherry-pick(#20973): chore: fix cli executable bits
  • 822227f cherry-pick(#20969): chore: release notes for 1.31 for java, python, csharp
  • f276edf cherry-pick(#20968): docs: Route.fetch.maxRedirects in java (#20970)
  • b7d3611 cherry-pick(#20966): fix(docs): move callback of Worker.waitForClose to the e...
  • Additional commits viewable in compare view


Dependabot commands
You can trigger Dependabot actions by commenting on this MR
  • $dependabot rebase will rebase this MR
  • $dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts

Merge request reports