diff --git a/tests/e2e/clipboard/tauri-clipboard.spec.ts b/tests/e2e/clipboard/tauri-clipboard.spec.ts index 1f0d6697c..a4abfc811 100644 --- a/tests/e2e/clipboard/tauri-clipboard.spec.ts +++ b/tests/e2e/clipboard/tauri-clipboard.spec.ts @@ -189,12 +189,16 @@ test('Tauri clipboard events from editable fields keep native text behavior', as await page.evaluate(() => { const host = document.createElement('div') host.innerHTML = - '
Text
' + '
Text
' document.body.append(host) }) - await dispatchClipboardEvent(page, 'copy', '[data-clipboard-probe]') + await dispatchClipboardEvent(page, 'copy', '[data-clipboard-probe="input"]') + expect(await testClipboard(page)).toEqual(before) + await dispatchClipboardEvent(page, 'copy', '[data-clipboard-probe="textarea"]') + expect(await testClipboard(page)).toEqual(before) await dispatchClipboardEvent(page, 'cut', '[contenteditable] span') + expect(await testClipboard(page)).toEqual(before) await dispatchClipboardEvent(page, 'paste', '[contenteditable] span') expect(await testClipboard(page)).toEqual(before)