Skip to content

Instantly share code, notes, and snippets.

describe('App', () => {
test('Drag&Drop capability', async () => {
await page.waitForSelector('.js-from')
await page.evaluate(() => {
window.simulateDrag()
window.simulateDrop()
})
expect(await page.evaluate(el => el.innerText, await page.$('.js-to')))