cool#8648 clipboard: fix desktop/impress/delete_objects_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: Ic499b60dde450b32464dc2b8cd959066ac5c2e7e
This commit is contained in:
Miklos Vajna 2024-04-15 14:31:34 +02:00 committed by Caolán McNamara
parent e3d5c168c1
commit c10cc6d8b8

View file

@ -17,10 +17,12 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function(
});
it('Delete Text', function() {
helper.setDummyClipboardForCopy();
cy.cGet('.leaflet-layer').dblclick('center');
cy.cGet('.leaflet-pane.leaflet-overlay-pane svg g').should('exist');
helper.typeIntoDocument('text');
helper.selectAllText();
helper.copy();
helper.expectTextForClipboard('text');
helper.typeIntoDocument('{del}');
helper.typeIntoDocument('{ctrl}a');