Skip to content

Commit

Permalink
cool#8648 clipboard: fix mobile/writer/track_changes_spec.js
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vmiklos committed Apr 23, 2024
1 parent 0f749d4 commit 82dc3e1
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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();
Expand All @@ -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');
});
});

0 comments on commit 82dc3e1

Please sign in to comment.