Skip to content

[Bug]: Playwright HTML Report Showing Password In Plain Text #36800

@SoonerLR

Description

@SoonerLR

Version

1.52

Steps to reproduce

  1. Update package.json to "@playwright/test": "1.51",
  2. npm update
  3. Run a test that uses locator.getByPlaceholder('Password').fill();
  4. After the test runs, the HTML Playwright report does not show plain text password. It simply shows the code in Step 3 (locator.getByPlaceholder('Password').fill();
  5. Update package.json to ""@playwright/test": "1.52" (or higher)
  6. npm update
  7. Run a test that uses locator.getByPlaceholder('Password').fill();
  8. The HTML report does show the actual password in plain text instead like this:
    Fill "SomeLongRandomPlainTextPassword" getByPlaceholder('Password')

Expected behavior

When using locator.fill to enter a password into a HTML input type=password field, the HTML Playwright report should not display the password in plain text.

Actual behavior

The HTML Playwright report shows the password in plain text.

Additional context

This bug was introduced in version 1.52

This new bug prints the value of the input instead of the name of the input object like it did before. So now, my Playwright HTML reports show plain text username and passwords without giving me a way to hide/surpress them. If there is a way, please show me.

Environment

This is reproducable in both Windows and MacOs systems.

Here is my local info:
System:
    OS: macOS 15.5
    CPU: (12) arm64 Apple M2 Pro
    Memory: 152.83 MB / 32.00 GB
  Binaries:
    Node: 22.17.1 - ~/.nvm/versions/node/v22.17.1/bin/node
    npm: 11.4.2 - ~/.nvm/versions/node/v22.17.1/bin/npm
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: 1.51 => 1.51.1

I do not have the info from the Windows environment (Our Prod CI/CD)

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