[Libreoffice-commits] online.git: cypress_test/integration_tests

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 22 16:03:46 UTC 2020


 cypress_test/integration_tests/common/helper.js |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

New commits:
commit 604782e0a3a11cc65a774709aa3f86ca3fc17327
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Wed Apr 22 17:43:03 2020 +0200
Commit:     Tamás Zolnai <tamas.zolnai at 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 <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at 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


More information about the Libreoffice-commits mailing list