Skip to content

Type short fills in video mode#8

Draft
mmkal wants to merge 4 commits into
mainfrom
feature/video-mode-type-fills
Draft

Type short fills in video mode#8
mmkal wants to merge 4 commits into
mainfrom
feature/video-mode-type-fills

Conversation

@mmkal

@mmkal mmkal commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

What changes

videoMode() now shows short locator.fill() values arriving character by character.

videoMode(); // type short fills in the recording
videoMode({ typeFills: false }); // keep Playwright fill behavior

Non-empty values up to 100 characters are cleared, then typed with a 50 ms delay per character. Empty, longer, and forced fills keep Playwright's original action. Highlights and metadata still describe the caller's fill().

The renderer uses the real field pixels from the typed action over its stable pre-action frame. This keeps the text animation without replaying unrelated page effects.

Before

The email field stays empty for the text hold, then jumps to the complete value.

before-instant-fill.webm

After

The same unchanged test now shows ada@example.com arriving character by character.

after-typed-fill.webm

Validation

  • One new public-behavior spec covers default typing and typeFills: false
  • Existing expectations are unchanged
  • 75 tests passed; 3 provider-gated tests skipped
  • Typecheck, build, and publint passed

Codex session: 019f947f-ca3b-7ed0-ab92-e637bf51e01a

@pkg-pr-new

pkg-pr-new Bot commented Jul 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/middlewright@8

commit: 3e5d413

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