     it 'Should manage to input search text', (done) ->
       searchText = 'kallion kirjasto'
       browser
-        .waitForElementByCss(searchFieldPath, delay)
+        .waitForElementByCss(searchFieldPath, delay, pollFreq)
         .click()
         .type(searchText)
         .should.be.fulfilled

browser = undefined
asserters = undefined

delay = 4000
errorDelay = 1000

baseUrl = 'http://localhost:9001'
pageTitle = 'Pääkaupunkiseudun palvelukartta'


    it 'Should contain button "Selaa palveluita"', (done) ->
      browser
        .waitForElementByCss(browseButtonSelector, delay, pollFreq)
        .click().should.be.fulfilled
        .should.notify(done)

    it 'Should contain list item "Terveys"', (done) ->
      browser
        .waitForElementByCss(serviceTreeItemSelector,
          asserters.textInclude('Terveys'), delay, pollFreq)
        .should.be.fulfilled
        .should.notify(done)

