This project supports the following blog post https://www.testingnotebook.com/posts/testing-copy-to-clipboard-with-cypress/ which demonstrates how to handle in Cypress testing copying to clipboard from a website.
git clone git@github.com:testingnotebook/cypress-clipboard-example.git
npm i
npm t