Skip to content

Bump pytest-playwright from 0.5.2 to 0.10.0 in /py-suite - #24

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/py-suite/pytest-playwright-0.10.0
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/py-suite/pytest-playwright-0.10.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 14, 2026 •

Copy link
Copy Markdown

Bumps pytest-playwright from 0.5.2 to 0.10.0.

Release notes

Sourced from pytest-playwright's releases.

v0.10.0

Highlights

Traces for playwright.request API contexts (#333). --tracing now also records contexts created with playwright.request.new_context(), one chunk per test, so a session-scoped API context yields a trace per test. The traces follow the same retain-on-failure handling, trace-N.zip naming and report attachments as browser traces. Requires Playwright 1.60 or newer.

Artifacts in test reports (#332). Kept screenshots, videos and traces are added to the teardown report as playwright_screenshot, playwright_video and playwright_trace user properties, so --junitxml writes them as <property> elements and pytest_runtest_logreport hooks and reporters can pick them up. With pytest-html >= 4 they are linked from the report, and embedded with --self-contained-html.

Reruns keep their own artifacts (#331). With pytest-rerunfailures, every attempt now writes to its own folder, test-results/<test>-retry1/ and so on, like Playwright Test. Attempts no longer overwrite each other.

Artifacts survive fixture failures in teardown (#330). --tracing retain-on-failure, --video retain-on-failure and --screenshot only-on-failure now keep artifacts when a fixture fails during teardown. A test skipped from a fixture no longer counts as failed.

Per-test browser launch options (#329):

@pytest.mark.parametrize(
    "browser_type_launch_args",
    [{"args": ["--lang=de-DE"]}],
    indirect=True,
)
def test_german(page):
    ...

Each distinct value launches its own browser; command line options such as --headed and --slowmo still apply.

Multi-browser parametrization fixes. Overriding the page fixture no longer drops --browser parametrization on older pytest versions (#314). browser_name is now parametrized indirectly, so tests keep their original order within a browser (#284).

VS Code debugger (#328). The browser is launched headed under the debugger only when a display is available. On Linux without DISPLAY or WAYLAND_DISPLAY set, it stays headless unless --headed is passed.

Breaking changes

  • pytest-base-url is now an optional dependency (#334). The plugin provides --base-url, the base_url ini option, the PYTEST_BASE_URL environment variable and the base_url fixture on its own. --verify-base-url needs the extra:

    pip install pytest-playwright[base-url]
  • Minimum pytest version is 7.0 for pytest-playwright and 8.2 for pytest-playwright-asyncio (#333).

  • python-slugify 9.x is now supported (#324).

Full Changelog: microsoft/playwright-pytest@v0.9.0...v0.10.0

v0.9.0

Adds --playwright-debug=cli: pytest pauses at the start of the first context and prints a python -m playwright cli attach … command so agents (or you) can inspect the live browser.

pytest --playwright-debug=cli -s
# ### The test is currently paused at the start
# ### Debugging Instructions
# - Run `python -m playwright cli attach tw-a1b2c3` to attach to this test
</tr></table> 

... (truncated)

Commits
  • 80d7569 feat: record traces of playwright.request API contexts (#333)
  • 63a07cd feat: make pytest-base-url an optional dependency (#334)
  • be5238a feat: attach screenshots, videos and traces to test reports (#332)
  • 543216d feat: keep artifacts of each pytest-rerunfailures attempt in its own folder (...
  • 4607d7c fix: keep artifacts when a fixture fails during teardown (#330)
  • cfd68b8 feat: allow per-test browser launch options via indirect parametrization (#329)
  • dc8396a fix: only default to headed under the VS Code debugger when a display is avai...
  • 0356d90 fix: keep multi-browser parametrization when the page fixture is overridden (...
  • 838da8d fix: Make 'browser_name' parameter indirect (#284)
  • 6dfaff3 chore(deps-dev): bump setuptools in /pytest-playwright-asyncio (#327)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Oct 14, 2026
Bumps [pytest-playwright](https://github.com/microsoft/playwright-pytest) from 0.5.2 to 0.10.0.
- [Release notes](https://github.com/microsoft/playwright-pytest/releases)
- [Commits](microsoft/playwright-pytest@v0.5.2...v0.10.0)

---
updated-dependencies:
- dependency-name: pytest-playwright
  dependency-version: 0.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/pip/py-suite/pytest-playwright-0.10.0 branch from f35f7ee to efb1a27 Compare October 17, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants