Skip to content

[Bug]: VSC extension isn't capturing all entered text #33787

@sharesies-amy

Description

@sharesies-amy

Version

1.49.0

Steps to reproduce

  1. Clone my repo at https://github.com/sharesies-amy/vsc-ext-codegen-bug
  2. Open VS Code
  3. Click Record new under Playwright Testing tools
  4. Observe Chromium window open
  5. Navigate to https://demo.playwright.dev/todomvc/#/
  6. Click What needs to be done? and enter text
  7. Observe that codegen hasn't captured all text. Seems to only capture the first character that's been entered.
  8. Empty field
  9. 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.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions