-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
Description
Version
1.49.0
Steps to reproduce
- Clone my repo at https://github.com/sharesies-amy/vsc-ext-codegen-bug
- Open VS Code
- Click Record new under Playwright Testing tools
- Observe Chromium window open
- Navigate to
https://demo.playwright.dev/todomvc/#/ - Click
What needs to be done?and enter text - Observe that codegen hasn't captured all text. Seems to only capture the first character that's been entered.
- Empty field
- Click field again and enter text, only first character is recorded again
Expected behavior
I expect input field to record all of the text I enter
Actual behavior
I entered testing and hello to the field, but this only captured the first character of each word.
import {test, expect} from '@playwright/test'
test('test', async ({page}) => {
await page.goto('https://demo.playwright.dev/todomvc/#/')
await page.getByPlaceholder('What needs to be done?').click()
await page.getByPlaceholder('What needs to be done?').fill('t') // I entered 'testing'
await page.locator('html').click()
await page.getByPlaceholder('What needs to be done?').click()
await page.getByPlaceholder('What needs to be done?').fill('h') // I entered 'hello'
})
Additional context
No response
Environment
System:
OS: macOS 15.1.1
CPU: (8) arm64 Apple M1
Memory: 521.59 MB / 16.00 GB
Binaries:
Node: 22.1.0 - ~/.nvm/versions/node/v22.1.0/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.7.0 - ~/.nvm/versions/node/v22.1.0/bin/npm
IDEs:
VSCode: 1.95.3 - /usr/local/bin/code
Languages:
Bash: 5.2.37 - /opt/homebrew/bin/bash
npmPackages:
@playwright/test: ^1.49.0 => 1.49.0Reactions are currently unavailable