Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] $attrs doesn't include event handlers in pass through component in Playwright component testing in Vue 3 #23526

Closed
1 task done
segevfiner opened this issue Jun 5, 2023 · 2 comments · Fixed by #23649

Comments

@segevfiner
Copy link

System info

  • Playwright Version: v1.34.3
  • Operating System: macOS 13.4
  • Browser: Chromium
  • Other info:

Source code

  • I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

https://github.com/segevfiner/playwright-ct-vue-on-issue

Steps

  • Run pnpm i
  • Run pnpm test:unit, it passes, there is an onFoo property in $attrs
  • Run pnpm test-ct, it fails, there is no onFoo property in $attrs, and it doesn't format the console.log message as the browser does (Handles %o and so on), just prints the arguments verbatim.

Expected

For event handlers specified in component testing and propagated via $attrs to work.

Actual

They don't work. (But they do in vitest)

@aslushnikov
Copy link
Contributor

cc @sand4rt any clues?

@sand4rt
Copy link
Collaborator

sand4rt commented Jun 8, 2023

@aslushnikov I can reproduce the issue. Will dive into it deeper later on.

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

Successfully merging a pull request may close this issue.

3 participants