Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sharesies-amy opened this issue Nov 27, 2024 · 1 comment · Fixed by #33822
Closed

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

sharesies-amy opened this issue Nov 27, 2024 · 1 comment · Fixed by #33822
Labels

Comments

@sharesies-amy
Copy link

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
@mxschmitt
Copy link
Member

Thanks for the great reproduction steps. I can repro.

RANGE: eaf3536...a980214

1.50.0-alpha-2024-11-16 bad
1.50.0-alpha-2024-11-15 good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants