Skip to content

Commit

Permalink
cool#8648 clipboard: fix mobile/impress/spellchecking_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: I7490be48e86f73d36e98cbea76b10f98d87aeede
  • Loading branch information
vmiklos authored and caolanm committed Apr 22, 2024
1 parent 4831dab commit 04a6af3
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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');
});
Expand Down

0 comments on commit 04a6af3

Please sign in to comment.