Skip to content

Commit

Permalink
Add pause before serach
Browse files Browse the repository at this point in the history
  • Loading branch information
amrita-shrestha committed Sep 27, 2022
1 parent f3104ba commit e08a813
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/acceptance/stepDefinitions/searchContext.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { client } = require('nightwatch-api')
const { When } = require('@cucumber/cucumber')

When('the user searches for {string} using the webUI', function (searchTerm) {
return client.page.webPage().search(searchTerm)
When('the user searches for {string} using the webUI', async function (searchTerm) {
await client.pause(500)
await client.page.webPage().search(searchTerm)
})

0 comments on commit e08a813

Please sign in to comment.