Skip to content

Fix page-fill.spec.ts headful test failures#154

Closed
kblok wants to merge 1 commit intomainfrom
fix/issue-125
Closed

Fix page-fill.spec.ts headful test failures#154
kblok wants to merge 1 commit intomainfrom
fix/issue-125

Conversation

@kblok
Copy link
Copy Markdown
Member

@kblok kblok commented Mar 28, 2026

Summary

  • Remove Page.ClickAsync("input") calls before fill operations on date/time/datetime-local inputs that caused native picker dialogs to open in headful mode, blocking the fill and causing timeouts
  • Remove range from unsupported input types list (the Playwright server now supports filling range inputs)
  • Add invalid-type to fillable input types, use case-insensitive error message assertion, and update test value to match upstream
  • Remove the [page-fill.spec.ts] * headful expected-failure entry from TestExpectations.local.json

Closes #125

Test plan

  • Verify dotnet build ./src/PlaywrightSharp.sln succeeds
  • Run page-fill tests in headless mode: dotnet test ./src/PlaywrightSharp.Tests/PlaywrightSharp.Tests.csproj --filter "ClassName=PlaywrightSharp.Tests.PageFillTests" -f netcoreapp3.1
  • Run page-fill tests in headful mode: HEADLESS=false dotnet test ./src/PlaywrightSharp.Tests/PlaywrightSharp.Tests.csproj --filter "ClassName=PlaywrightSharp.Tests.PageFillTests" -f netcoreapp3.1
  • Confirm no remaining expected-failure entry for [page-fill.spec.ts] in headful mode

🤖 Generated with Claude Code

The page-fill tests failed in headful mode because several tests called
Page.ClickAsync() on date/time/datetime-local inputs before filling them.
In headful mode, clicking these inputs opens native date/time picker
dialogs that block the subsequent fill operation, causing timeouts.

Changes to match upstream Playwright tests:
- Remove Page.ClickAsync("input") before fill on time, datetime-local,
  incorrect date, incorrect time, and incorrect datetime-local tests
- Remove "range" from unsupported input types (now supported by server)
- Add "invalid-type" to fillable input types list
- Update incorrect date test value from "2020-13-02" to "2020-13-05"
- Rename ShouldFillTimeInputAfterClicking to ShouldFillTimeInput
- Use case-insensitive assertion for error messages
- Remove expected-failure entry from TestExpectations.local.json

Closes #125

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kblok kblok closed this Mar 30, 2026
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.

Fix failing tests: page-fill.spec.ts (headful)

1 participant