summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2020-03-21 10:41:31 -0400
committerAndras Timar <andras.timar@collabora.com>2020-03-26 17:56:53 +0100
commit3c758f5aacaf874e78234e7d3b5d54852946ab6a (patch)
treeefab857f6de258869dfcfc0a19a278f19d43e8f4
parent12e69c2e70bf5ada37e46b58fa902ae98a69d37f (diff)
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@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91127 Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--cypress_test/integration_tests/mobile/writer/focus_spec.js6
1 files changed, 5 insertions, 1 deletions
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() {