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

v-clipboard's copy function fails while using cypress #139

Open
Daffodil404 opened this issue Dec 7, 2022 · 0 comments
Open

v-clipboard's copy function fails while using cypress #139

Daffodil404 opened this issue Dec 7, 2022 · 0 comments

Comments

@Daffodil404
Copy link

Daffodil404 commented Dec 7, 2022

When I was using cypress to run test cases for the purpose to copy text via v-clipboard , it always occurs error while copying
here is the simple example of my problem
template part:
<Button id="testBtn" v-clipboard:copy="statement" v-clipboard:success="handleCopySuccess" v-clipboard:error="handleCopyError"/>
Button is a component whose core is <button> , which is used to control the process via click it.
cypress test part
cy.get('#testBtn').click()
after execute this command , there is always a fail message for us that the copy had been failed, and there was nothing in the clipboard.
What should I do to copy correctly while in cypress

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

No branches or pull requests

1 participant