Skip to content

Fix elementhandle-wait-for-element-state headful test failures#155

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

Fix elementhandle-wait-for-element-state headful test failures#155
kblok wants to merge 1 commit intomainfrom
fix/issue-118

Conversation

@kblok
Copy link
Copy Markdown
Member

@kblok kblok commented Mar 28, 2026

Summary

  • Updated ElementHandleWaitForElementStateTests.cs to match upstream Playwright tests, fixing headful-mode failures
  • Renamed test "should throw waiting for hidden when detached" to "should wait for hidden when detached" (matching upstream)
  • Replaced old enabled/disabled button tests with upstream aria-disabled variants ("should wait for aria enabled button", "should wait for button with an aria-disabled parent")
  • Fixed "should wait for stable position": added proper [Test, Timeout] attributes (was missing [Test]), added rafraf call before starting wait (required for Firefox animation), removed incorrect Firefox skip
  • Added missing "should wait for editable input" test from upstream
  • Removed wildcard headful expected-failure entry for [elementhandle-wait-for-element-state.spec.ts] *

Closes #118

Test plan

  • Verify dotnet build ./src/PlaywrightSharp.sln succeeds
  • Run headful Chromium tests: HEADLESS=false PRODUCT=CHROMIUM dotnet test --filter "ClassName=PlaywrightSharp.Tests.ElementHandleWaitForElementStateTests"
  • Run headful Firefox tests: HEADLESS=false PRODUCT=FIREFOX dotnet test --filter "ClassName=PlaywrightSharp.Tests.ElementHandleWaitForElementStateTests"
  • Confirm CI passes for all headful matrix entries

🤖 Generated with Claude Code

Update tests to match upstream Playwright:
- Rename "should throw waiting for hidden when detached" to match upstream name
- Replace "should wait for enabled button" with "should wait for aria enabled button" using aria-disabled attribute
- Replace "should wait for disabled button" with "should wait for button with an aria-disabled parent"
- Fix "should wait for stable position": add [Test, Timeout] attributes, add rafraf call before wait, remove Firefox skip
- Add missing "should wait for editable input" test
- Remove unused SkipBrowserAndPlatformFact import

Remove wildcard headful expected failure for elementhandle-wait-for-element-state.spec.ts.

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-wait-for-element-state.spec.ts (headful)

1 participant