cool#8648 clipboard: fix mobile/impress/spellchecking_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: I7490be48e86f73d36e98cbea76b10f98d87aeede
This commit is contained in:
Miklos Vajna 2024-04-19 09:45:39 +02:00 committed by Caolán McNamara
parent 4831dabec0
commit 04a6af39cf

View file

@ -47,11 +47,13 @@ describe(['tagmobile', 'tagnextcloud', 'tagproxy'], 'Spell checking menu.', func
}
it('Apply suggestion.', function() {
helper.setDummyClipboardForCopy();
openContextMenu();
cy.cGet('body').contains('.context-menu-link', 'hello').click();
impressHelper.selectTextOfShape();
helper.copy();
helper.expectTextForClipboard('hello');
});