Skip to content

Commit

Permalink
chore: fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Aug 16, 2024
1 parent f90e1a6 commit b5bb1ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/client/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ export async function clickSelect (page, selector, entry, wait = 500) {
export async function clear (page, selector, wait = 500) {
try {
await page.waitForSelector(selector, { timeout: 2000 })
await page.$eval(selector, element => element.value = '')
await page.$eval(selector, element => { element.value = '' })
await page.waitForTimeout(wait)
} catch (error) {
console.error(`[KDK] Clear ${text} in ${selector} failed.`)
console.error(`[KDK] Clear ${selector} failed.`)
}
}

Expand Down

0 comments on commit b5bb1ee

Please sign in to comment.