microsoft / microsoft/playwright

[Bug]: Content in dialog element cannot be masked

Open
#29,878 4 comments 9 reactions 0 assignees View on GitHub
feature-visual-regression-testing P3-collecting-feedback
Dominant language
TypeScript
Stars
96.3k
Forks
6.5k
Avg merge
1d 6h
Merged PRs (30d)
180

Description

### Version

1.42.1

### Steps to reproduce

1. Clone https://github.com/raythurnevoid/pw-dialog-bug/tree/main
2. Run `npm i && npx playwright test`
3. Cehck the snapshot under `tests\example.spec.ts-snapshots`

### Expected behavior

The content in the dialog should be masked

### Actual behavior

The content in the dialog is not masked

### Additional context

I'm running the tests only in chromium

### Environment

```shell
System:
OS: Windows 11 10.0.22631
CPU: (16) x64 AMD Ryzen 9 4900H with Radeon Graphics
Memory: 17.27 GB / 31.42 GB
Binaries:
Node: 21.6.0 - C:\Program Files\nodejs\node.EXE
npm: 10.4.0 - C:\Program Files\nodejs\npm.CMD
IDEs:
VSCode: 1.87.1 - C:\Users\rt0\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
npmPackages:
@playwright/test: ^1.42.1 => 1.42.1
playwright: ^1.42.1 => 1.42.1
```

Contributor guide

Open the contributing guide

Research direction

Clone the linked reproduction, install dependencies with npm i, and run npx playwright test; inspect tests/example.spec.ts and its snapshot under tests/example.spec.ts-snapshots. Done means the Chromium snapshot shows the dialog content masked, matching the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
playwright, typescript
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.