Skip to content

[Bug]: command line flag --headed has no effect in ui mode #33023

@fafeitsch

Description

@fafeitsch

Version

1.48.0

Steps to reproduce

  1. set headless: true in playwright.config.ts
  2. start playwright using playwright test --ui --headed
  3. run a test

Expected behavior

The test is run in headed mode, i.e. a browser window opens.

Actual behavior

The test is run in the UI, but in headless mode, i.e. without opening a browser and without stopping at await page.pause.

Additional context

In the previous version, 1.47.2 this works as expected.

Also, playwright test --headed does work as expected. Only --headed together with --ui seems to be ignored.

Environment

System:
OS: Linux 6.8 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13700H
Memory: 13.63 GB / 31.01 GB
Container: Yes
Binaries:
Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
npm: 10.8.2 - ~/.nvm/versions/node/v20.17.0/bin/npm
pnpm: 9.5.0 - ~/.local/share/pnpm/pnpm
Languages:
Bash: 5.1.16 - /usr/bin/bash
npmPackages:
@playwright/test: 1 => 1.48.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions