Skip to content

Commit

Permalink
cool#8648 clipboard: fix desktop/calc/focus_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: I5e6d435fc9322fd5478d78f8e9ba0ef525b6c5cd
  • Loading branch information
vmiklos committed Apr 17, 2024
1 parent eceb1db commit 67d38b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cypress_test/integration_tests/desktop/calc/focus_spec.js
Expand Up @@ -16,6 +16,7 @@ describe(['tagdesktop'], 'Calc focus tests', function() {
});

it('Formula-bar focus', function() {
helper.setDummyClipboardForCopy();
// Select first cell
calcHelper.clickOnFirstCell();
cy.wait(200);
Expand All @@ -31,6 +32,7 @@ describe(['tagdesktop'], 'Calc focus tests', function() {

// Check text in formulabar
calcHelper.typeIntoFormulabar('{ctrl}a');
helper.copy();
helper.expectTextForClipboard(text1);
// Clear selection
calcHelper.typeIntoFormulabar('{enter}');
Expand All @@ -47,6 +49,7 @@ describe(['tagdesktop'], 'Calc focus tests', function() {
calcHelper.clickOnFirstCell();
cy.wait(200);
calcHelper.typeIntoFormulabar('{ctrl}a');
helper.copy();
helper.expectTextForClipboard(text1+text2);
calcHelper.typeIntoFormulabar('{enter}');
});
Expand Down

0 comments on commit 67d38b6

Please sign in to comment.