Skip to content

Fix elementhandle-misc.spec.ts headful test failures#162

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

Fix elementhandle-misc.spec.ts headful test failures#162
kblok wants to merge 1 commit intomainfrom
fix/issue-113

Conversation

@kblok
Copy link
Copy Markdown
Member

@kblok kblok commented Mar 28, 2026

Summary

  • Fix ShouldUncheckTheBox test to match upstream: add missing checked attribute to the checkbox input element so uncheck actually transitions state instead of being a no-op
  • Remove the overly-broad [elementhandle-misc.spec.ts] * headful expected-failure entry from TestExpectations.local.json

Closes #113

Test plan

  • Verify dotnet build ./src/PlaywrightSharp.sln passes with zero errors
  • Verify ElementHandleMiscTests pass in headless mode: dotnet test --filter "ClassName=PlaywrightSharp.Tests.ElementHandleMiscTests" -f netcoreapp3.1
  • Verify ElementHandleMiscTests pass in headful mode: HEADLESS=false dotnet test --filter "ClassName=PlaywrightSharp.Tests.ElementHandleMiscTests" -f netcoreapp3.1
  • Confirm the elementhandle-misc.spec.ts entry is no longer in TestExpectations.local.json

🤖 Generated with Claude Code

The ShouldUncheckTheBox test was missing the `checked` attribute on the
input element, diverging from upstream. Without it, Playwright's uncheck
is a no-op on an already-unchecked checkbox, but in headful mode the
click-based uncheck path could hang waiting for state change. Update the
test HTML to match upstream (`<input ... checked>`) and remove the
overly-broad headful expected-failure entry.

Closes #113

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: elementhandle-misc.spec.ts (headful)

1 participant