-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cool#8648 clipboard: fix desktop/writer/copy_paste_spec.js
Once the patch from <#8648 (comment)> is applied to make CanvasTileLayer.js _onTextSelectionMsg() not fetch the clipboard proactively, this test started to fail. This happened because the test assumed that once a text selection is created, we have the HTML for it, which is no longer the case. Fix the problem by extending the dummy clipboard code to also handle plain text and by adding a function which triggers the copy(), to minimize the changes to the actual test code. This is just a start, lots of other tests still need fixing, and once the pattern is clear, common code should be extracted to cypress_test/integration_tests/common/helper.js, probably. Signed-off-by: Miklos Vajna <vmiklos@collabora.com> Change-Id: I21ed1143470fa8026e133b0519e114a40fc0ed90
- Loading branch information
Showing
2 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters