summaryrefslogtreecommitdiffstats
path: root/cypress_test/integration_tests/desktop/writer
diff options
context:
space:
mode:
authorGökay Şatır <gokaysatir@collabora.com>2023-03-02 16:19:03 +0300
committerGökay ŞATIR <gokaysatir@gmail.com>2023-03-03 11:38:33 +0300
commitfdd039e502246b23756c1f78b6e02c391ea47fc4 (patch)
tree9e51a6f8d2d9fa22f97bb9f4639b16286b064431 /cypress_test/integration_tests/desktop/writer
parentHide also the wrapper of pushbutton when the button is hidden. (diff)
downloadonline-fdd039e502246b23756c1f78b6e02c391ea47fc4.tar.gz
online-fdd039e502246b23756c1f78b6e02c391ea47fc4.zip
Modify cypress tests for JSDialogues.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: I566ddb2c3111d2d1689b91c678ac9aa92e88ab05
Diffstat (limited to 'cypress_test/integration_tests/desktop/writer')
-rw-r--r--cypress_test/integration_tests/desktop/writer/copy_paste_spec.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/cypress_test/integration_tests/desktop/writer/copy_paste_spec.js b/cypress_test/integration_tests/desktop/writer/copy_paste_spec.js
index 32d1d9b180..06d2b08606 100644
--- a/cypress_test/integration_tests/desktop/writer/copy_paste_spec.js
+++ b/cypress_test/integration_tests/desktop/writer/copy_paste_spec.js
@@ -30,15 +30,6 @@ describe('Clipboard operations.', function() {
cy.contains('.context-menu-link', 'Copy')
.click();
- // COOL code can not execute document.execCommand() when executed by cypress
- // https://github.com/cypress-io/cypress/issues/2851
- cy.get('.vex-dialog-message p')
- .should('have.text', 'Your browser has very limited access to the clipboard, so use these keyboard shortcuts:');
-
- cy.get('.vex-dialog-form button[type=\'submit\']')
- .click();
-
- cy.get('.vex-dialog-form')
- .should('not.exist');
+ cy.get('#copy_paste_warning').should('exist');
});
});