Skip to content

test(input): cover rejected fill and fill_form actions - #3351

Open
a5768549 wants to merge 1 commit into
ChromeDevTools:mainfrom
a5768549:fix/fill-readonly-invalid-v2
Open

a5768549 wants to merge 1 commit into
ChromeDevTools:mainfrom
a5768549:fix/fill-readonly-invalid-v2

Conversation

@a5768549

Copy link
Copy Markdown

Summary

Related to #2942. The read-only/unaccepted-value fix is already in Puppeteer (puppeteer/puppeteer#15603) and this repository has updated that dependency. This is test-only coverage, not a new implementation of that fix.

The two handler tests verify that a rejected locator fill does not append success output, wait results or a snapshot, and that fill_form stops before attempting the next field. They use the existing mocks and exercise the actual handler action callback.

Only tests/tools/input.test.ts changes. The tests cover propagation of a locator rejection; they do not independently test browser read-only/input-sanitization behavior.

Verification

Tested commit: 5e68bd1d6f72760bc7fc1a5f99dc0ed313bfbc05, based on ada7963246c0c91eae185125a57aecd13cbe0376.

Isolated fork validation job on Ubuntu, Node 22.23.3:

  • npm ci and npm run bundle: passed.
  • npm run test -- --test-concurrency=1: 1764 passed, 0 failed, 0 cancelled, 2 skipped. The two skips are existing Windows-only cases.
  • npm run test:notices:no-build: 1 passed.
  • npm run typecheck, npm run check-format: passed.
  • npm run gen followed by git diff --exit-code: passed.

The unchanged baseline was run with the same setup (1762 passed, 2 skipped). Final test names were compared with the baseline: no existing tests were missing.

Additional Windows focused validation: npm run test -- tests/tools/input.test.ts --test-concurrency=1: 48 passed (Windows browser cleanup warnings were also emitted).

Windows full-suite success is not claimed: the unchanged baseline and candidates fail the same ConfigWatcher symlink test with EPERM on this workstation. Earlier parallel Node 24 runs returned success but inconsistent completed-test counts, so those were not used as the full-suite acceptance evidence. The upstream CI matrix remains separate from this fork validation.

Prepared and verified with AI assistance (Hermes Agent).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant