cypress: make simultaneous typing test more stable.

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 <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
This commit is contained in:
Tamás Zolnai 2020-07-30 10:59:56 +02:00
parent bbb7697203
commit d43c97a9ef
2 changed files with 2 additions and 2 deletions

View file

@ -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')

View file

@ -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')