cypress_test/integration_tests/common/helper.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
New commits: commit 604782e0a3a11cc65a774709aa3f86ca3fc17327 Author: Tamás Zolnai <tamas.zol...@collabora.com> AuthorDate: Wed Apr 22 17:43:03 2020 +0200 Commit: Tamás Zolnai <tamas.zol...@collabora.com> CommitDate: Wed Apr 22 18:03:25 2020 +0200 cypress: eliminate cy.wait() in clearAllText() method. Change-Id: I572daf71b31814e2d6e0d2dc831152773e659f7b Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92717 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com> diff --git a/cypress_test/integration_tests/common/helper.js b/cypress_test/integration_tests/common/helper.js index b31c2badd..78f34fe07 100644 --- a/cypress_test/integration_tests/common/helper.js +++ b/cypress_test/integration_tests/common/helper.js @@ -105,8 +105,19 @@ function clearAllText() { cy.log('Clear all text'); + // Trigger select all cy.get('textarea.clipboard') - .type('{ctrl}a{del}').wait(300); + .type('{ctrl}a'); + + cy.get('.leaflet-marker-icon') + .should('exist'); + + // Then remove + cy.get('textarea.clipboard') + .type('{del}'); + + cy.get('.leaflet-marker-icon') + .should('not.exist'); } // Expects getTextForClipboard return the given _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits