cool#8648 clipboard: fix mobile/writer/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: Ic4a57aede4f0bca397868a80303df8d124e31ba4
pull/8604/head
Miklos Vajna 2024-04-19 11:41:50 +02:00 committed by Caolán McNamara
parent a2db31f437
commit 9cca40deda
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function()
});
it('Delete Table', function() {
helper.setDummyClipboardForCopy();
mobileHelper.openInsertionWizard();
// Open Table submenu
cy.cGet('body').contains('.ui-header.level-0.mobile-wizard.ui-widget', 'Table').click();
@ -65,6 +66,7 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Delete Objects', function()
// Table is inserted with the markers shown
cy.cGet('.leaflet-marker-icon.table-column-resize-marker').should('exist');
helper.typeIntoDocument('{ctrl}a');
helper.copy();
// Two rows
cy.cGet('#copy-paste-container tr').should('have.length', 2);
// Four cells