Version
1.56.1
Steps to reproduce
- npx playwright codegen
- Navigate to website (ex. google.com)
- Click "Assert text" from toolbar
- Click on highlighted text on website
- Click in the "Assert that element contains" text box
Expected behavior
The "Assert that element contains" text box remains open and I'm able to edit the text in the text field.
Actual behavior
The "Assert that element contains" text box closes.

Additional context
No response
Environment
System:
OS: macOS 15.6.1
CPU: (10) arm64 Apple M4
Memory: 806.36 MB / 24.00 GB
Binaries:
Node: 21.7.1 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.8.3 - /opt/homebrew/bin/npm
IDEs:
VSCode: 1.105.1 - /usr/local/bin/code
Languages:
Bash: 3.2.57 - /bin/bash