From beb84fb38cebf92786e42095cb402634cb95d625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Zolnai?= Date: Fri, 11 Sep 2020 16:35:18 +0200 Subject: [PATCH] cypress: NC: fix copy&paste desktop test. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5cd8ad2fe6682e34100fdc0409c2792acd115566 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102475 Tested-by: Jenkins CollaboraOffice Reviewed-by: Tamás Zolnai --- .../integration_tests/desktop/writer/copy_paste_spec.js | 6 ++++++ 1 file changed, 6 insertions(+) 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 5883d235b..767fae9b4 100644 --- a/cypress_test/integration_tests/desktop/writer/copy_paste_spec.js +++ b/cypress_test/integration_tests/desktop/writer/copy_paste_spec.js @@ -35,5 +35,11 @@ describe('Clipboard operations.', function() { // 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.be.visible'); }); });