[Libreoffice-commits] online.git: 2 commits - cypress_test/integration_tests
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 3 08:52:13 UTC 2020
cypress_test/integration_tests/desktop/writer/focus_spec.js | 21 +++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
New commits:
commit 928d675270622ca6010317cc2fb81ed18e9f164a
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Tue Sep 1 13:04:39 2020 +0200
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Thu Sep 3 10:52:05 2020 +0200
cypress: test search field's focus when we type fast.
Change-Id: If8523238aa5fed258fd93e8a9bcca03ed3490455
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101989
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/desktop/writer/focus_spec.js b/cypress_test/integration_tests/desktop/writer/focus_spec.js
index 07a231262..ded067887 100644
--- a/cypress_test/integration_tests/desktop/writer/focus_spec.js
+++ b/cypress_test/integration_tests/desktop/writer/focus_spec.js
@@ -75,4 +75,24 @@ describe('Focus tests', function() {
cy.get('#search-input')
.should('have.prop', 'value', text);
});
+
+ it('Search with fast typing.', function() {
+ // Move focus to the search field
+ cy.get('#search-input')
+ .click();
+
+ cy.document().its('activeElement.id')
+ .should('be.eq', 'search-input');
+
+ var text = 'qqqqqqqqqqqqqqqqqqqq';
+ cy.get('body')
+ .type(text);
+
+ // Search field still has the focus.
+ cy.document().its('activeElement.id')
+ .should('be.eq', 'search-input');
+
+ cy.get('#search-input')
+ .should('have.prop', 'value', text);
+ });
});
commit 95bc84e748bc8c8aa82dbc4e978029ce006c7b75
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Tue Sep 1 11:52:44 2020 +0200
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Thu Sep 3 10:51:54 2020 +0200
cypress: remove outdated comment.
Change-Id: I132ec38feacc5450e0b31d910b8f29e09dca2a66
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101988
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/desktop/writer/focus_spec.js b/cypress_test/integration_tests/desktop/writer/focus_spec.js
index 780ee0619..07a231262 100644
--- a/cypress_test/integration_tests/desktop/writer/focus_spec.js
+++ b/cypress_test/integration_tests/desktop/writer/focus_spec.js
@@ -69,7 +69,6 @@ describe('Focus tests', function() {
helper.typeText('body', text, 200);
// Search field still has the focus.
- // We have a focus issue here.
cy.document().its('activeElement.id')
.should('be.eq', 'search-input');
More information about the Libreoffice-commits
mailing list