document.execCommand('copy')
navigator
Replaces the deprecated API which might cause issues with the copy button. Also adds an E2E test for the copy button