From d5fa1bda00d15c22ba097540e0a95faf17afe97f Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 12 Apr 2021 19:07:43 +0200 Subject: [PATCH] cleanup search --- cypress/integration/Search/I_search_for_{string}.js | 7 ------- cypress/integration/common/I_search_for_{string}.js | 5 +++-- 2 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 cypress/integration/Search/I_search_for_{string}.js diff --git a/cypress/integration/Search/I_search_for_{string}.js b/cypress/integration/Search/I_search_for_{string}.js deleted file mode 100644 index 99e507447..000000000 --- a/cypress/integration/Search/I_search_for_{string}.js +++ /dev/null @@ -1,7 +0,0 @@ -import { When } from "cypress-cucumber-preprocessor/steps"; - -When("I search for {string}", value => { - cy.get(".searchable-input .ds-select input") - .focus() - .type(value); -}); \ No newline at end of file diff --git a/cypress/integration/common/I_search_for_{string}.js b/cypress/integration/common/I_search_for_{string}.js index 214cb4e33..9040de7d6 100644 --- a/cypress/integration/common/I_search_for_{string}.js +++ b/cypress/integration/common/I_search_for_{string}.js @@ -1,7 +1,8 @@ import { When } from "cypress-cucumber-preprocessor/steps"; -When("I search for {string}", postTitle => { +When("I search for {string}", value => { cy.get(".searchable-input .ds-select input") .focus() - .type(postTitle); + .type(value) + .wait(750); }); \ No newline at end of file