From d43c97a9efe0c761ae06026027ca8452b1e2ff85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Zolnai?= Date: Thu, 30 Jul 2020 10:59:56 +0200 Subject: [PATCH] cypress: make simultaneous typing test more stable. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sometimes this text contains an additional end line character. Change-Id: Id58eab9ea3b082781cdd8ec341fa2b058ba3b17e Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99770 Tested-by: Jenkins CollaboraOffice Reviewed-by: Tamás Zolnai --- .../multiuser/simultaneous_typing_user1_spec.js | 2 +- .../multiuser/simultaneous_typing_user2_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress_test/integration_tests/multiuser/simultaneous_typing_user1_spec.js b/cypress_test/integration_tests/multiuser/simultaneous_typing_user1_spec.js index e618512dc..293617bf5 100644 --- a/cypress_test/integration_tests/multiuser/simultaneous_typing_user1_spec.js +++ b/cypress_test/integration_tests/multiuser/simultaneous_typing_user1_spec.js @@ -32,7 +32,7 @@ describe('Simultaneous typing: user-1.', function() { helper.selectAllText(); cy.get('#copy-paste-container p') - .should('have.text', text); + .should('contain.text', text); // Change paragraph alignment to trigger user-2 actions cy.get('textarea.clipboard') diff --git a/cypress_test/integration_tests/multiuser/simultaneous_typing_user2_spec.js b/cypress_test/integration_tests/multiuser/simultaneous_typing_user2_spec.js index 5e4eea2ee..dc4873d56 100644 --- a/cypress_test/integration_tests/multiuser/simultaneous_typing_user2_spec.js +++ b/cypress_test/integration_tests/multiuser/simultaneous_typing_user2_spec.js @@ -32,7 +32,7 @@ describe('Simultaneous typing: user-2.', function() { helper.selectAllText(); cy.get('#copy-paste-container p') - .should('have.text', text); + .should('contain.text', text); // user-1 changes the paragraph alignment after finished cy.get('#tb_editbar_item_centerpara .w2ui-button')