-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed
Description
Version
1.52
Steps to reproduce
- Update package.json to "@playwright/test": "1.51",
- npm update
- Run a test that uses locator.getByPlaceholder('Password').fill();
- 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();
- Update package.json to ""@playwright/test": "1.52" (or higher)
- npm update
- Run a test that uses locator.getByPlaceholder('Password').fill();
- 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)tkramarczyk-vgw
Metadata
Metadata
Assignees
Labels
No labels