[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2-1' - cypress_test/integration_tests

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Thu Mar 26 16:57:15 UTC 2020


 cypress_test/integration_tests/mobile/writer/focus_spec.js |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 3c758f5aacaf874e78234e7d3b5d54852946ab6a
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Sat Mar 21 10:41:31 2020 -0400
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Thu Mar 26 17:56:53 2020 +0100

    cypress: check keyboard visibility when editing shapes in writer
    
    Change-Id: I1580f4620459797b95eecb88edbcd12406531618
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90992
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91127
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/cypress_test/integration_tests/mobile/writer/focus_spec.js b/cypress_test/integration_tests/mobile/writer/focus_spec.js
index f1efae3ee..49fbeae8b 100644
--- a/cypress_test/integration_tests/mobile/writer/focus_spec.js
+++ b/cypress_test/integration_tests/mobile/writer/focus_spec.js
@@ -191,13 +191,17 @@ describe('Focus tests', function() {
 				var posX = svg[0].getBBox().x + svg[0].getBBox().width / 2;
 				var posY = svg[0].getBBox().y + svg[0].getBBox().height / 2;
 				cy.get('#document-container')
-					.dblclick(posX, posY);
+					.dblclick(posX, posY).wait(100);
 			});
 
 		// Document still has the focus
 		// TODO: Focus is inconsistent here.
 		//cy.document().its('activeElement.className')
 		//	.should('be.eq', 'clipboard');
+
+		cy.window().then(win => {
+			expect(win.shouldAcceptInput(), 'Should accept input').to.equal(true);
+		});
 	});
 
 	it('Focus with hamburger menu.', function() {


More information about the Libreoffice-commits mailing list