summaryrefslogtreecommitdiffstats
path: root/cypress_test/integration_tests/mobile/impress/searchbar_spec.js
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2020-12-07 15:59:52 +0100
committerTamás Zolnai <zolnaitamas2000@gmail.com>2020-12-08 20:21:36 +0100
commit963f97349ff17aee4af5ee9719fb990997e02f1f (patch)
treee34dafbbaa81fbc7ae21d15a4da3e5a057a2bdb3 /cypress_test/integration_tests/mobile/impress/searchbar_spec.js
parentJSDialog: Improve expanders (diff)
downloadonline-963f97349ff17aee4af5ee9719fb990997e02f1f.tar.gz
online-963f97349ff17aee4af5ee9719fb990997e02f1f.zip
cypress: add helper methods for text selection.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com> Change-Id: Id799c5389adb518e42aac7c5838e27405d4ecb1f
Diffstat (limited to 'cypress_test/integration_tests/mobile/impress/searchbar_spec.js')
-rw-r--r--cypress_test/integration_tests/mobile/impress/searchbar_spec.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/cypress_test/integration_tests/mobile/impress/searchbar_spec.js b/cypress_test/integration_tests/mobile/impress/searchbar_spec.js
index cd9a00591f..ce385c557b 100644
--- a/cypress_test/integration_tests/mobile/impress/searchbar_spec.js
+++ b/cypress_test/integration_tests/mobile/impress/searchbar_spec.js
@@ -41,16 +41,13 @@ describe('Searching via search bar.', function() {
helper.selectAllText();
- cy.get('.leaflet-marker-icon')
- .should('exist');
+ helper.textSelectionShouldExist();
searchHelper.tpyeIntoSearchField('q');
searchHelper.searchNext();
- // Should be no selection
- cy.get('.leaflet-marker-icon')
- .should('not.exist');
+ helper.textSelectionShouldNotExist();
});
it('Search next / prev instance.', function() {