From 74fdfa877a5ed3ceb5ed70dc34de3cd0b8d15ada Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Wed, 12 Aug 2026 13:12:51 +0300 Subject: [PATCH] test(tauri): cover textarea clipboard routing --- tests/e2e/clipboard/tauri-clipboard.spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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)