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

Test for clipboard usage in Secrets e2e tests #1756

Closed
joelfried opened this issue Jun 21, 2021 · 0 comments
Closed

Test for clipboard usage in Secrets e2e tests #1756

joelfried opened this issue Jun 21, 2021 · 0 comments
Labels
kind/bug Something isn't working team/ui team/unity More suited for the Unity squad of the UI team

Comments

@joelfried
Copy link
Contributor

The secrets end to end tests should test to make sure that the copy to clipboard functionality works properly. Unfortunately due to an issue in Cypress we can't test the contents of the clipboard properly and attempting to do so causes the tests to fail.

Specifically the fallback method used by React Copy to Clipboard causes an alert to be opened inside Cypress that it won't autodismiss with a success (it looks like this:
image
)

This is a known issue with Cypress being tracked here - once that issue is resolved and we've updated to the appropriate version of Cypress, uncommenting the relevant lines in secrets.test.ts should just work (in theory).

@joelfried joelfried added kind/bug Something isn't working team/ui team/unity More suited for the Unity squad of the UI team labels Jun 21, 2021
@asalem1 asalem1 closed this as completed Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working team/ui team/unity More suited for the Unity squad of the UI team
Projects
None yet
Development

No branches or pull requests

2 participants