Test Key: M18702
Test folder: /cypress/integration/messaging
Title: Copy a permalink and paste into another channel
Steps:
Expected:
See our end-to-end testing documentation for reference.
Jira ticket: MM-18702
If you're interested, please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.
New contributors please see our Developer's Guide.
May I take this one?
@larkox Sure and thanks!
I have been taking a look to this, and there is a problem. Apparently, there is no way to access the clipboard through Cypress. Here are the different solutions I tried and was not able to make them work:
I also Googled possible solutions from Cypress, and it seems that it is not implemented, and will not have any implementation apart of 'type': https://github.com/cypress-io/cypress/issues/1123
Since the only apparent solution would be to keep the link in a variable, and type it later, this is already done on message_permalink_spec.js. The only difference would be to set the time delay between keys to 0, so the feeling would be similar to something being pasted instead of typed.
That being said, would you like this solution? Or would you feel it is redundant with 'message_permalink_spec.js' and should close this issue since it feels that cannot be implemented?
Thanks for checking. You're right, it's redundant with that specs. Will close this issue now.