cool#8648 clipboard: fix mobile/writer/track_changes_spec.js

To work even if we don't automatically fetch HTML when a text selection
is created.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: If9371a3d235a0ee6c006be72dabe40242fa46b2b
pull/8847/head
Miklos Vajna 2024-04-22 14:24:27 +02:00
parent 0f749d45a8
commit 82dc3e1a46
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Track Changes', function()
});
it('Reject All',function() {
helper.setDummyClipboardForCopy();
helper.typeIntoDocument('Hello World');
cy.wait(1000);
enableRecord();
@ -69,6 +70,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Track Changes', function()
confirmChange('Reject All');
cy.cGet('.leaflet-layer').click();
helper.selectAllText();
helper.copy();
helper.expectTextForClipboard('Hello World');
});
});