Skip to content

Instantly share code, notes, and snippets.

@imolorhe
Created August 3, 2019 12:55
Show Gist options
  • Save imolorhe/a2a5aec5e33c3579c0320fb8f8a56cf2 to your computer and use it in GitHub Desktop.
Save imolorhe/a2a5aec5e33c3579c0320fb8f8a56cf2 to your computer and use it in GitHub Desktop.
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