Created
August 3, 2019 12:55
-
-
Save imolorhe/a2a5aec5e33c3579c0320fb8f8a56cf2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should write the clipping text to the clipboard', async () => { | |
await app.client.waitUntilWindowLoaded(); | |
await app.electron.clipboard.writeText('Vegan Ham'); | |
await app.client.click('#copy-from-clipboard'); | |
await app.electron.clipboard.writeText('Something different'); | |
await app.client.click('.copy-clipping'); | |
const clipboardText = await app.electron.clipboard.readText(); | |
return assert.equal(clipboardText, 'Vegan Ham'); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment