[Libreoffice-commits] online.git: cypress_test/integration_tests
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Sun Jul 26 13:09:36 UTC 2020
cypress_test/integration_tests/multiuser/userlist_user1_spec.js | 17 +++-------
cypress_test/integration_tests/multiuser/userlist_user2_spec.js | 6 +--
2 files changed, 9 insertions(+), 14 deletions(-)
New commits:
commit 735a5a7f8b9e459cbd1f35b2b39a146d5378e8e5
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Fri Jul 24 15:31:50 2020 +0200
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Sun Jul 26 15:09:17 2020 +0200
cypress: make multi-user test case more stable.
Adding a comment was not stable. Let's just change
some paragraph properties to check multi-user interaction.
Change-Id: If923312de2c85b8897bc7a0af1f8e3f560576cc0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99376
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
diff --git a/cypress_test/integration_tests/multiuser/userlist_user1_spec.js b/cypress_test/integration_tests/multiuser/userlist_user1_spec.js
index c40f4af9b..93f323b96 100644
--- a/cypress_test/integration_tests/multiuser/userlist_user1_spec.js
+++ b/cypress_test/integration_tests/multiuser/userlist_user1_spec.js
@@ -22,20 +22,15 @@ describe('Check user list with user-1.', function() {
cy.get('#tb_actionbar_item_userlist .w2ui-tb-caption')
.should('have.text', '2 users');
- // Leave a comment for user-2, that we finished
- cy.get('#menu-insert')
- .click();
+ // Change the paragraph alignment
+ cy.get('#tb_editbar_item_leftpara .w2ui-button')
+ .should('have.class', 'checked');
- cy.get('#menu-insertcomment')
+ cy.get('#tb_editbar_item_centerpara .w2ui-button')
.click();
- cy.get('.loleaflet-annotation-edit:nth-of-type(2) .loleaflet-annotation-textarea')
- .type('Done');
-
- helper.waitUntilIdle('#annotation-save');
-
- cy.get('#annotation-save')
- .click({force: true});
+ cy.get('#tb_editbar_item_centerpara .w2ui-button')
+ .should('have.class', 'checked');
});
});
diff --git a/cypress_test/integration_tests/multiuser/userlist_user2_spec.js b/cypress_test/integration_tests/multiuser/userlist_user2_spec.js
index 9a8de655e..7b7b9fa5e 100644
--- a/cypress_test/integration_tests/multiuser/userlist_user2_spec.js
+++ b/cypress_test/integration_tests/multiuser/userlist_user2_spec.js
@@ -25,8 +25,8 @@ describe('Check user list with user-2.', function() {
cy.get('#tb_actionbar_item_userlist .w2ui-tb-caption')
.should('have.text', '2 users');
- // user-1 adds a comment, so we can close this view
- cy.get('.loleaflet-annotation-content-wrapper')
- .should('exist');
+ // user-1 changes the paragraph alignment
+ cy.get('#tb_editbar_item_centerpara .w2ui-button')
+ .should('have.class', 'checked');
});
});
More information about the Libreoffice-commits
mailing list